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