Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public override void ExitState()
 {
     openView.DisplayView(false);
     openView.OnSaveChosen -= LoadChosenSaveFile;
     openView.UnsubscribeButtonActions();
 }