Beispiel #1
0
 private void Action()
 {
     if (Input.GetMouseButton(0))
     {
         gunController.Shoot();
     }
 }
Beispiel #2
0
 private void Action()
 {
     if (Input.GetMouseButton(0))
     {
         shootSpan--;
         if (shootSpan == 0)
         {
             shootSpan = spanTime;
             gunController.Shoot();
         }
     }
 }