public override void PlayLoop() { base.PlayLoop(); if (AnimationSequence.Count > 0) { AnimationSequence [0].Play(); } else { PlayCallBack.OnCompleteMethod(); } }
public override void PlayNext(IAction skyAction) { if (AnimationSequence.Contains(skyAction)) { int index = AnimationSequence.IndexOf(skyAction); if (index < AnimationSequence.Count - 1) { AnimationSequence [index + 1].Play(); } else { PlayCallBack.OnCompleteMethod(); } } }
public override void PlayLoop() { base.PlayLoop(); if (AnimationSequence.Count > 0) { foreach (IAction skyAction in AnimationSequence) { skyAction.Play(); } DelayTimeAction(PlayTime, PlayCallBack); } else { PlayCallBack.OnCompleteMethod(); } }
IEnumerator Tweening() { if (PlayCallBack != null && PlayCallBack.OnStartMethod != null) { PlayCallBack.OnStartMethod(); } float t = Time.time; while (Time.time - t < skyBezierCurve.timeDuration) { yield return(0); UpdateAnimation(Time.time - t); } if (PlayCallBack != null && PlayCallBack.OnCompleteMethod != null) { PlayCallBack.OnCompleteMethod(); } }