Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (GlobalControl.GetButtonDownB(playerNum) && readyToShoot)
     {
         FireMid();
         readyToShoot = false;
         Invoke("ResetReadyToShoot", delay);
     }
     if (GlobalControl.GetButtonDownY(playerNum) && readyToShoot)
     {
         FireHigh();
         readyToShoot = false;
         Invoke("ResetReadyToShoot", delay);
     }
     if (GlobalControl.GetButtonDownA(playerNum) && readyToShoot)
     {
         FireLow();
         readyToShoot = false;
         Invoke("ResetReadyToShoot", delay);
     }
 }