Exemple #1
0
 void OnTriggerEnter(Collider c)
 {
     if (c.GetComponent <PlayerMovement>())
     {
         buttonOn = !buttonOn;
         thruster.OnButtonPress(buttonOn);
     }
 }