private void RunAnimation()
 {
     collapsedTime = 0;
     CoroutineManager.Instance.DoAction(CoroutineRunner.EveryFrameDoOneAction(delegate
     {
         collapsedTime += Time.deltaTime;
         return(DoCollapsedTimeFrame(collapsedTime));
     }));
 }
Exemple #2
0
 private void RunAnimation()
 {
     collapsedTime = 0;
     CoroutineManager.Instance.DoAction(CoroutineRunner.EveryFrameDoOneAction(delegate
     {
         collapsedTime += Time.deltaTime;
         if (collapsedTime > _currentEditAnimation.duration)
         {
             collapsedTime = 0;
             Debug.Log("done!");
             return(true);
         }
         else
         {
             return(false);
         }
     }));
 }