コード例 #1
0
 public void SetUpMotion(Animotion actualMotion)
 {
     if (this.actualMotion == null)
     {
         this.actualMotion = actualMotion;
         return;
     }
     if (this.actualMotion.executionState != ANIMOTIONEXECUTIONSTATE.PERFORMING)
     {
         this.actualMotion = actualMotion;
     }
     else
     {
         Debug.Log("CANT CHANGE IS PERFORMING");
     }
 }
コード例 #2
0
        private void EndMotion()
        {
            // A VERGA
            if (speedUpCoroutine != null)
            {
                actualMotion.coroutineMono.StopCoroutine(speedUpCoroutine);
            }

            if (skipCoroutine != null)
            {
                actualMotion.coroutineMono.StopCoroutine(skipCoroutine);
            }
            skipCoroutine    = null;
            speedUpCoroutine = null;
            actualMotion     = null;
        }