public void AnimationCallback() { CustomAnimation completedAnimation = animations[0]; animations.RemoveAt(0); if (completedAnimation.destroyAfter) { completedAnimation.DestroyIfNeeded(); } OnAnimationEnded?.Invoke(); StartAnimations(); }
public void AnimationCallback() { CustomAnimation completedAnimation = animations[0]; animations.RemoveAt(0); if (completedAnimation.destroyAfter) { completedAnimation.DestroyIfNeeded(); } OnAnimationEnded?.Invoke(); StartAnimations(); }