private void JumpInput() { if (Input.GetKey(KeyCode.Space)) { _playerJump.JumpEvent(JumpState.Ready); } if (Input.GetKeyUp(KeyCode.Space)) { _playerJump.JumpEvent(JumpState.Jump); } }
private void JumpInput() { if (Input.GetKey(KeyCode.Space)) { _playerJump.JumpEvent(JumpState.Ready); } if (Input.GetKeyUp(KeyCode.Space)) { _playerJump.JumpEvent(JumpState.Jump); } }