Exemplo n.º 1
0
 public void nitro()
 {
     if (objectivesTracker.getNitro() >= 0.25f)
     {
         objectivesTracker.activateNitro();
         Handheld.Vibrate();
         nitroSound.Play();
     }
 }
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         if (objectivesTracker.getNitro() >= 0.25f)
         {
             objectivesTracker.activateNitro();
         }
     }
     move();
 }