Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (tempAnim != null)
     {
         bool completed = tempAnim.DoUpdate();
         if (completed)
         {
             tempAnim = null;
         }
     }
     else
     {
         currentAnim?.DoUpdate();
     }
 }