Ejemplo n.º 1
0
        public override void CastAction()
        {
            if (remainingUses == 0)
            {
                return;
            }

            Debug.Log("Heal " + remainingUses);
            if (health == null)
            {
                health = data.source.GetComponent <Health>();
            }
            health.HealPercentageMax(healValue);
            remainingUses--;
        }