This file contains hidden or 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 StateMachine<T> | |
| { | |
| public State<T> CurrentState { get; private set; } | |
| public T Owner; | |
| public StateMachine(T owner) | |
| { | |
| this.Owner = owner; | |
| CurrentState = null; | |
| } |
This file contains hidden or 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 interface IPausable | |
| { | |
| public void OnPaused(bool isPaused); | |
| } |