Example #1
0
        public void OnHoverAbilityButton(GameObject butObj)
        {
            if (GameControl.GetSelectedTower() != null)
            {
                return;
            }

            int     ID      = GetButtonID(butObj);
            Ability ability = AbilityManager.GetAbilityList()[ID];

            txtTooltipName.text = ability.name;
            txtTooltipCost.text = "" + ability.GetCostInt();
            txtTooltipDesp.text = ability.GetDesp();

            tooltipObj.SetActive(true);
        }