void Update() { playerMover.Move(Input.GetAxis(Dictionary.InputText.HORIZONTAL)); if (Input.GetKeyDown(KeyCode.Space) && canShot) { playerShot.Shot(); } }
private void Shot() { if (state != PlayerState.Shot || !playerShot.IsCanShot) { return; } playerShot.Shot(); playerAni.ChangeAni(PlayerState.Shot); }