Esempio n. 1
0
 public void ExitBuildMenu()
 {
     DeSelectTower();
     ToggleCanvasGroup.Hide(GameObject.Find("Towers").GetComponent <CanvasGroup>());
     ToggleCanvasGroup.Show(GameObject.Find("BuildMenu").GetComponent <CanvasGroup>());
     ToggleCanvasGroup.Hide(GameObject.Find("ExitBuildMenu").GetComponent <CanvasGroup>());
 }
Esempio n. 2
0
 public void ResumeGame()
 {
     Time.timeScale = 1;
     ToggleCanvasGroup.Show(GameObject.Find("Pause").GetComponent <CanvasGroup>());
     ToggleCanvasGroup.Hide(GameObject.Find("Resume").GetComponent <CanvasGroup>());
     ToggleCanvasGroup.Hide(GameObject.Find("Quit").GetComponent <CanvasGroup>());
     buttongroup.SetActive(true);
 }
Esempio n. 3
0
 public void PlaceBuildingMode()
 {
     ToggleCanvasGroup.Show(GameObject.Find("DeselectTower").GetComponent <CanvasGroup>());
     ToggleCanvasGroup.Hide(GameObject.Find("Towers").GetComponent <CanvasGroup>());
     ToggleCanvasGroup.Hide(GameObject.Find("ExitBuildMenu").GetComponent <CanvasGroup>());
 }