Exemplo n.º 1
0
 public void BackToMainMenu()
 {
     displayedPanel = DisplayedPanel.mainMenu;
     selector.transform.SetParent(menuOptions[selectorIndex].selectPoint.transform);
     selector.localPosition = Vector3.zero;
     mainMenuPanel.SetActive(true);
     creditsPanel.SetActive(false);
 }
Exemplo n.º 2
0
 public void ShowCredits()
 {
     displayedPanel = DisplayedPanel.credits;
     selector.transform.SetParent(creditsPanelSelectPoint.transform);
     selector.localPosition = Vector3.zero;
     mainMenuPanel.SetActive(false);
     creditsPanel.SetActive(true);
 }
Exemplo n.º 3
0
 void Start()
 {
     selector.transform.SetParent(menuOptions[0].selectPoint.transform);
     selector.localPosition = Vector3.zero;
     selectorIndex          = 0;
     displayedPanel         = DisplayedPanel.mainMenu;
     mainMenuPanel.SetActive(true);
     creditsPanel.SetActive(false);
     SerializeSystem.LoadGame(scoreData);
     scoreData.currentScore = 0;
     UpdateHighscoreDisplay();
 }