public void ResetQueue() { Delegates.ScreenType currentScreen = screenQueue[screenQueue.Count - 1]; screenQueue = new List <Delegates.ScreenType>(); screenQueue.Add(Delegates.ScreenType.HOME); screenQueue.Add(currentScreen); }
public void ResetGameManager(Delegates.ScreenType screenType) { if (screenType == Delegates.ScreenType.HOME) { GameManager.Instance.Reset(); } }
void UpdateQueue(Delegates.ScreenType screenType) { if (isBackClick) { isBackClick = false; } else { screenQueue.Add(screenType); backButton.interactable = true; } }
public void OnClick() { isBackClick = true; Delegates.ScreenType prevScreen = screenQueue[screenQueue.Count - 2]; screenQueue.RemoveAt(screenQueue.Count - 1); if (prevScreen == Delegates.ScreenType.HOME) { backButton.interactable = false; } Delegates.Instance.ScreenSelectListeners(prevScreen); }
// Load default message public void ScreenChanged(Delegates.ScreenType newScreen) { if (newScreen == Delegates.ScreenType.INTRODUCTION) { inIntroduction = true; advisorAdvice = "Sir? SIR! Please click the screen to at least show me you're paying some attention."; } else if (newScreen == Delegates.ScreenType.GAME) { inIntroduction = false; advisorAdvice = "Good evening sir. The guests have all arrived.\n\nYou'll be addressing each individually. \n\nSelect one and do be careful. Our kingdom depends on you."; LoadAdvisorText(); } }
public void UpdateDisplay(Delegates.ScreenType screenType) { if (screenType == Delegates.ScreenType.DOSSIER) { gameObject.transform.GetChild(0).GetComponent <Carousel>().PrepareForPresentation(); startButton.SetActive(!dossierSeenBefore); continueButton.SetActive(dossierSeenBefore); dossierSeenBefore = true; } else if (screenType == Delegates.ScreenType.HOME) { dossierSeenBefore = false; startButton.SetActive(!dossierSeenBefore); continueButton.SetActive(dossierSeenBefore); } }
public void Display(Delegates.ScreenType screenType) { fadeCanvasGroupScript.Show(screenType == activateType); }