Esempio n. 1
0
 private void Update() {
     // Increase duration of the unit path by 10 seconds
     if (Input.GetKeyDown(KeyCode.F)) {
         tank.ChangeDuration(10f);
     }
     // Decrease duration of the unit path by 10 seconds
     if (Input.GetKeyDown(KeyCode.G)) {
         tank.ChangeDuration(-10f);
     }
 }