Ejemplo n.º 1
0
    public override void Use(GameObject owner)
    {
        Creature creature = owner.GetComponent <Creature>();

        if (creature == null)
        {
            Debug.Log("I can't repair it: RepairPack, Use: " + owner.name);
            return;
        }

        if (creature.AddHitPoints(healPower))
        {
            stackCount--;
        }
    }