Пример #1
0
    public void AnimationCallback()
    {
        CustomAnimation completedAnimation = animations[0];

        animations.RemoveAt(0);
        if (completedAnimation.destroyAfter)
        {
            completedAnimation.DestroyIfNeeded();
        }
        OnAnimationEnded?.Invoke();
        StartAnimations();
    }