Beispiel #1
0
    public override void Die()
    {
        base.Die();

        Player.playerHealth.SetInvulnerable(8);

        ScreenFlash.Flash(0.5f);
        CameraShake.Shake(3f, 1f);

        LevelHandler.ClearEnemiesAndProjectiles();
        spikeContainer.SetActive(false);
        foreach (GameObject g in turrets)
        {
            g.GetComponent <Tile>().isTileEnabled = false;
        }
        turretContainer.SetActive(false);
    }