public GameStateMachine(GameStateController owner, Dictionary <StateTransition, IGameState> transitions) { _owner = owner; _transitions = transitions; }
public IEnumerator Exit(GameStateController controller) { yield return(controller.UnloadScene(_menuScene)); }