fix grounded on dash window
This commit is contained in:
parent
e936db5567
commit
3fbfc07b41
@ -67,7 +67,9 @@ namespace Intrepid.Gameplay.Entities.Sentinel.StateMachine.States
|
|||||||
|
|
||||||
private bool CheckDash()
|
private bool CheckDash()
|
||||||
{
|
{
|
||||||
if (Brain.Inputs.Dash())
|
// this could be a feature to be unlocked
|
||||||
|
// if (Brain.Inputs.Dash())
|
||||||
|
if (Brain.Entity.IsGrounded && Brain.Inputs.Dash())
|
||||||
{
|
{
|
||||||
Brain.ChangeState(SentinelStateType.Dash);
|
Brain.ChangeState(SentinelStateType.Dash);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user