private void Start() { dayNight = GameObject.FindGameObjectWithTag("DesertManager").GetComponent <Desert_DayNightCycle>(); gameManagerMaster = GameObject.FindGameObjectWithTag("GameManager").GetComponent <GameManager_Master>(); _currentHydration = maxHydration; UpdateHydrationDisplay(); }
private void Initialize() { gameManagerMaster = GetComponent <GameManager_Master>(); dayNight = GameObject.FindGameObjectWithTag("DesertManager").GetComponent <Desert_DayNightCycle>(); gameOverUI.SetActive(false); cg = gameOverUI.GetComponent <CanvasGroup>(); cg.alpha = 0; mainMenuButton.SetActive(false); text.gameObject.SetActive(false); }
private void Start() { dayNight = GetComponent <Desert_DayNightCycle>(); UpdateTemperature(); UpdateDisplay(); }