示例#1
0
    private void Die()
    {
        if (gameObject.layer == 8)
        {
            defenderSpawner.RemoveDefenderFromList(gameObject.GetComponent <Defender>());
        }

        TriggerDeathVFX();
        gameObject.SetActive(false);
        Destroy(gameObject);
    }