Exemple #1
0
 void CreateBullet()
 {
     //checks for space bar input
     if (input.Action())
     {
         AddBullet();
     }
 }
Exemple #2
0
 void CreateBullet()
 {
     //checks for space bar input
     if (input.Action() && CanShoot())
     {
         Shoot();
     }
 }