public override void EnterState() { openView = stateController.AppViews.OpenView; openView.OnSaveChosen += LoadChosenSaveFile; openView.OnBackButton += BackToMenu; foreach (var saveFile in SaveController.Instance.SaveDataCollection.saveDataList) { openView.SetupGridButton(saveFile.id); } openView.SubscribeButtonActions(); openView.DisplayView(true); }
public override void ExitState() { openView.DisplayView(false); openView.OnSaveChosen -= LoadChosenSaveFile; openView.UnsubscribeButtonActions(); }