Esempio n. 1
0
 public void run()
 {
     if (!isRunning)
     {
         isRunning         = true;
         velocidadJugador += runningVelocity;
         audioSource.Play();
         hudHandler.setMiraOff();
     }
     else
     {
         velocidadJugador -= runningVelocity;
         isRunning         = false;
         audioSource.Stop();
         hudHandler.setMiraOff();
     }
 }