public virtual void PlayLoop() { if (PlayCallBack.OnStartMethod != null) { PlayCallBack.OnStartMethod(); } }
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(); } }