Roses/Assets/Scripts/View/Scene/GrowParticle.cs
2024-04-18 23:21:03 +02:00

15 lines
No EOL
327 B
C#

using System;
using Presenter;
using UnityEngine;
using Animator = FramedAnimator.Animator;
namespace View.Scene {
public class GrowParticle : MonoBehaviour {
[SerializeField] private Animator animator;
private void Start() {
animator.OnAnimationEnd += _ => Destroy(gameObject);
animator.PlayUntil(1f);
}
}
}