private void OnAnimationCompleted(ITweener tweener) { if (tweener.IsCompleted) { CAAnimation am = (CAAnimation)tweener; AnimationDidStop?.Invoke(am, true); OnCompleted(am, true); Animations.Remove(am.ForKey); } }
public void UnLoaded() { foreach (var child in Childs) { child.UnLoaded(); } foreach (var an in Animations) { AnimationDidStop?.Invoke(an.Value, false); } }