Exemple #1
0
    private void StartGame()
    {
        foreach (EnemyController e in enemyControllers)
        {
            if (e == null)
            {
                continue;
            }
            Destroy(e.gameObject);
        }
        enemyControllers = new List <EnemyController>();
        waveManager.Reset();

        playerController.Activate(true);
        cameraManager.Activate(true);
        waveManager.Activate(true);
    }