Esempio n. 1
0
    void TakeDamage(int _amount)
    {
        life_point -= _amount;
        if (life_point <= 0)
        {
            Destroy(this.gameObject);
            int remaining_damage = life_point * -1;
            attached_castle.DestroyStage(remaining_damage, this);
        }

        //Dimiuer le height et baisser la position de attachedObject
    }