Skip to content

Instantly share code, notes, and snippets.

View FedeGToto's full-sized avatar

Fede Giorgi FedeGToto

View GitHub Profile
public class StateMachine<T>
{
public State<T> CurrentState { get; private set; }
public T Owner;
public StateMachine(T owner)
{
this.Owner = owner;
CurrentState = null;
}
public interface IPausable
{
public void OnPaused(bool isPaused);
}