// Set up. public void Init(Character cas, Prop targ, AIAction ac, int ind) { caster = cas; target = targ; action = ac; index = ind; Power power = action as Power; if (power) { button.image.sprite = power.icon; ToolTipIcon toolTip = GetComponent <ToolTipIcon>(); if (toolTip) { toolTip.OnPointerExit(); Text text = toolTip.toolTip.GetComponentInChildren <Text>(); if (text) { text.text = power.GetDescription(); } } } // could be AIBrain (squad based setup) or PlayerPower (third person setup) responder = caster.GetComponent <IMenuItemResponder>(); }