void Awake() { fightState = GameObject.Find("GeneralScripts").GetComponent <FightState>(); actionOrbRowObj = GameObject.Find("ActionOrbRow"); actionOrbImageObj = transform.Find("OrbImage").gameObject; orbShine = transform.Find("OrbBackground/OrbShine").GetComponent <NiceShine>(); setActionIdx(); }
void Awake() { // When the first SkillButton is created, populate this field so other objects // can access the icons off the SkillButton class itself. if (iconOptionsStatic == null) { iconOptionsStatic = iconOptions; } fightState = GameObject.Find("GeneralScripts").GetComponent <FightState>(); buttonBackgroundObj = transform.Find("ButtonBackground").gameObject; skillImage = transform.Find("SkillImage").GetComponent <Image>(); buttonShine = transform .Find("ButtonBackground/ButtonShine") .GetComponent <NiceShine>(); cooldownObj = transform.Find("SkillImage/CooldownBackground").gameObject; cooldownText = transform .Find("SkillImage/CooldownBackground/CooldownText") .GetComponent <Text>(); }