public static bool ContainsCommandableTypes(State.Type source) { foreach (State.Type commandableType in State._commandableTypes) { if (source == commandableType) { return(true); } } return(false); }
public void changeState(State.Type type) { // Unload current state's content currentState.unload(); // Assign new current state currentState = states[type]; // Load next state's content currentState.load(); }