private void Start() { if (!isBarSlot) { ability = Utils.AbilityIDs[abilityId]; } tp = GameObject.Find("TacticalPause").GetComponent <TacticalPause>(); if (!hoverBubble.Equals(null)) { hoverText = hoverBubble.transform.FindChild("description").GetComponent <Text>(); abilityName = hoverBubble.transform.FindChild("name").GetComponent <Text>(); AbilityType = hoverBubble.transform.FindChild("type").GetComponent <Text>(); abilityName.text = ability.name; AbilityType.text = ability.useType; hoverBubble.SetActive(false); } }
void Start() { tp = GameObject.Find("TacticalPause").GetComponent <TacticalPause>(); }