Exemplo n.º 1
0
 private void FireBullet()
 {
     if (Time.frameCount % firingSpeed == 0 && GameUI.gamePaused == false)
     {
         bulletManager.GetBullet(transform.position);
         SoundManager.PlaySound("sfx_laser2");
     }
 }
 public void ShootPlayer()
 {
     bulletManager.GetBullet(new Vector3(transform.position.x, transform.position.y, transform.position.z));
 }