Ejemplo n.º 1
0
    void Death()
    {
        // Set the death flag so this function won't be called again.
        isDead = true;
        spawn.Spawn();
        //We use LevelUp because it already has logic that sets max Hp and refreshes hp
        LevelUp(startingHealth, false);
        deaths++;
        statLogic.AddDeath();

        isDead = false;
    }