private void Shoot() { switch (m_weaponModel.TriggerType) { case TriggerType.OnTriggerPressed: if (Input.GetKeyDown(ShootKey)) { m_weaponModel.Shoot(); } break; case TriggerType.OnTriggerHold: if (Input.GetKey(ShootKey)) { m_weaponModel.Shoot(); } break; } if (Input.GetKeyUp(ShootKey)) { m_weaponModel.StoppedShooting(); } }