コード例 #1
0
ファイル: Player.cs プロジェクト: KaitoMajima/Sneeze-Hell
        private void SneezeRecover()
        {
            movementState.Velocity = Vector2.zero;

            playerState        = Player.PlayerState.Idle;
            sneezeDashSettings = DashSettings.Default;
            fireAction?.Enable();
            aimAction?.Enable();
        }
コード例 #2
0
ファイル: Player.cs プロジェクト: KaitoMajima/Sneeze-Hell
        private void InitiateSneeze(DashSettings sneezeDashSettings, Vector2 input)
        {
            movementState.Velocity = Vector2.zero;

            Movement.Pulse(ref movementState, sneezeDashSettings.movementSettings, input);

            playerRigidbody.velocity = movementState.Velocity;

            playerState             = Player.PlayerState.Sneezing;
            this.sneezeDashSettings = sneezeDashSettings;
            sneezeAnimation.Activate();
            fireAction?.Disable();
            aimAction?.Disable();
        }