Example #1
0
 private void PlayerShootingCheck()
 {
     if (KeyManager.IsPressed(KeyCode.Mouse0))
     {
         OnPlayerShot?.Invoke();
     }
 }
Example #2
0
 public void CallOnBulletShotEvent(Vector2 position, Quaternion rotation) =>
 OnPlayerShot?.Invoke(position, rotation);