public void Created() { if (created) { return; } if (GetComponentInChildren <AbilityBase>() != null) { AbilityBase ability = GetComponentInChildren <AbilityBase>(); abilityName = ability.GetAbilityName(); abilityText = ability.GetInfo(); abilitySprite = ability.GetInventoryImageSprite(); if (ability.GetComponent <Animator>() != null) { ability.GetComponent <Animator>().enabled = false; } //ability.GetBattleImageHolder().GetComponent<Image>().sprite = yellowBox; //ability.GetBattleImageHolder().GetComponent<Image>().enabled = false; //ability.GetInventoryImageHolder().GetComponent<Image>().enabled = true; created = true; } }