Created
February 19, 2021 09:31
-
-
Save johans2/e655bfa78182650dd37a59a54fb21fcb to your computer and use it in GitHub Desktop.
StateMachine example state.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RunState : StateMachine { | |
protected override void OnEnter() { | |
Debug.Log("Enter RunState"); | |
} | |
protected override void OnUpdate() { | |
Debug.Log("Updating RunState"); | |
} | |
protected override void OnExit() { | |
Debug.Log("Exit JumpState"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment