Ejemplo n.º 1
0
    private void SelfDestruct()
    {
        GameObject blast = Instantiate(blastEffect, transform.position, Quaternion.identity);

        Destroy(blast, 2);
        enemySpawner.SetNoSpawnMode();
        buttonManager.ActiveRetryButton();
    }