private void FireCheck() { if (Input.GetKeyDown(KeyCode.Space)) { StartFire?.Invoke(); } else if (Input.GetKeyUp(KeyCode.Space)) { StopFire?.Invoke(); } }
public void StartFiring() { StartFire?.Invoke(); }