Пример #1
0
 public override void OnPointerClick(PointerEventData eventData)
 {
     base.OnPointerClick(eventData);
     SceneLoader.loadGameFromSave = true;
     SceneLoader.saveNameToLoad   = saveName;
     MainMenuUiController.GetController <MainMenuUiController>(CoreContext.Menu).SwitchContext(MainMenuContext.Start);
 }
Пример #2
0
 public override void OnPointerClick(PointerEventData eventData)
 {
     base.OnPointerClick(eventData);
     if (contextToSet == MainMenuContext.Start)
     {
         SceneLoader.loadGameFromSave = false;
     }
     MainMenuUiController.GetController <MainMenuUiController>(CoreContext.Menu).SwitchContext(contextToSet);
 }