Skip to content

Instantly share code, notes, and snippets.

@PhantomIsland-kase PhantomIsland-kase/IdleState Secret
Created Dec 19, 2017

Embed
What would you like to do?
public class PlayerStateIdle : PlayerStateBase
{
public PlayerStateIdle(PlayerState playerState, PlayerController playerController)
: base(playerState, playerController)
{
}
public override void MainUpdate()
{
m_playerController.RayCastToGround();
}
public override bool IsEnabledState()
{
if(Game.I.Player.IsGround.Value &&
!Game.I.Player.IsBattle.Value &&
!Game.I.Player.IsWater.Value)
return true;
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.