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>()); }
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); }
public void PlaceBuildingMode() { ToggleCanvasGroup.Show(GameObject.Find("DeselectTower").GetComponent <CanvasGroup>()); ToggleCanvasGroup.Hide(GameObject.Find("Towers").GetComponent <CanvasGroup>()); ToggleCanvasGroup.Hide(GameObject.Find("ExitBuildMenu").GetComponent <CanvasGroup>()); }