Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //change CharacterBehaviour to inherit from StateMachine
- public class StateMachine : BaseBehaviour
- {
- protected State state;
- public void SetState(State state) {
- this.state = state;
- this.state.Enter();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement