private void SetInitialRefs() { gM_ToggleMenu = GetComponent <GameManager_ToggleMenu>(); activeTabColor = MenuTab.GetComponent <Image>().color; inActiveTabColor = OptionsTab.GetComponent <Image>().color; }
void Start() { gameManagerSpawner = FindObjectOfType <GameManager_Spawn>().GetComponent <GameManager_Spawn>(); gameManagerToggle = FindObjectOfType <GameManager_ToggleMenu>().GetComponent <GameManager_ToggleMenu>(); gameManagerUi = FindObjectOfType <GameManager_UIDisplay>().GetComponent <GameManager_UIDisplay>(); player = GameObject.FindWithTag("Player").GetComponent <Player>(); displayStageTimer = true; stageTimer = 14; stageTimerCounter = 0; difficulty = 1; timeDifficulty = 5 - difficulty; }