protected override void Awake() { base.Awake(); pointerImg = spellMenuPointer.GetComponent <Image>(); interactText = interactPromt.GetComponentInChildren <TextMeshProUGUI>(); playerUnit = playerSC.GetComponent <CharController>(); interactText.text = ""; interactPromt.SetActive(false); displayInfoText = displayInfoTextBG.GetComponentInChildren <TextMeshProUGUI>(); displayInfoText.text = ""; bossHealthBar = GetComponent <BossHealthBar>(); fader = GetComponent <Fader>(); /* * int spellIconsAmount = spellCooldownIcons.Length; * for (int i = 0; i < spellIconsAmount; i++) * { * spellCooldownText[i] = spellCooldownIcons[i].gameObject.GetComponentInChildren<TextMeshProUGUI>(); * spellCooldownText[i].text = ""; * } */ }