public void SetInstance() { // Set a static reference to self so that other scripts can reference it on load if (_instance != null) { Debug.Log("Instance to StateContext has been assigned twice"); } _instance = this; }
public CameraState(StateContext context) : base(context) { }
public MainMenuState(StateContext context) : base(context) { }
public void Back() { StateContext.GetInstance().CurrentState.Back(); }
public void ShowMainMenuButton() { StateContext.GetInstance().CurrentState.ShowMainMenu(); }
public void ShowHistoryButton() { StateContext.GetInstance().CurrentState.ShowHistory(); }
public void ShowCameraButton() { StateContext.GetInstance().CurrentState.CameraOff(); }
public RestaurantState(StateContext context) : base(context) { }
public HistoryState(StateContext context) : base(context) { }