public void CheckForStateChange(State.States state) { if (state != this.lastState) { Console.WriteLine("GUI STATECHANGED to "+ state); OnStateChange(state); } }
public void OnStateChange(State.States state) { lastState = state; }