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