public override void Dispose() { if (animator != null) { animator.Stop(); animator.Dispose(); } }
public override void Dispose() { if (playerOrbAnimator != null) { playerOrbAnimator.Stop(); playerOrbAnimator.Dispose(); playerOrbAnimator = null; } }
public void StartAnimation() { if (animation == null) { animation = new OOEValueAnimator().Duration(1.0f).From(0).To(30).Interpolation(OOEInterpolation.easeOut); animation.OnValueChange = (value) => { frame.origin.y = point.y - value; }; animation.OnFinish = () => { if (completion != null) { completion(); } animation.Stop(); animation.Dispose(); animation = null; }; animation.Start(); } }