Ejemplo n.º 1
0
 private void PlayDeployAnimation(int speed)
 {
     if (speed < 0)
     {
         if (activeAnimationName != "")
         {
             ActiveAnimation.Stop(activeAnimationName);
         }
         if (deactivateAnimationName != "")
         {
             DeactivateAnimation.Stop(deactivateAnimationName);
         }
         DeployAnimation[deployAnimationName].time = DeployAnimation[deployAnimationName].length;
     }
     DeployAnimation[deployAnimationName].speed = speed;
     DeployAnimation.Play(deployAnimationName);
 }