public override void OnPointerClick(PointerEventData eventData) { base.OnPointerClick(eventData); SceneLoader.loadGameFromSave = true; SceneLoader.saveNameToLoad = saveName; MainMenuUiController.GetController <MainMenuUiController>(CoreContext.Menu).SwitchContext(MainMenuContext.Start); }
public override void OnPointerClick(PointerEventData eventData) { base.OnPointerClick(eventData); if (contextToSet == MainMenuContext.Start) { SceneLoader.loadGameFromSave = false; } MainMenuUiController.GetController <MainMenuUiController>(CoreContext.Menu).SwitchContext(contextToSet); }