Ejemplo n.º 1
0
    void Attack(BuildingController target)
    {
        target.Health -= attack;
        //Debug.Log(target + " has" + Health + " health.");

        if (target.Health <= 0)
        {
            target.Dead();
            //Debug.Log(target + " has died.");
        }
    }