Esempio n. 1
0
        private void LoadNewLevel()
        {
            _soundWaveControllers = new List <SoundWaveController>();
            _enemyControllers     = new List <EnemyController>();
            levelColliders        = new List <ColliderController>();
            _levelRows            = new List <GameObject>();
            Level level = GetCurrLevel();

            CreateGrid(marchingSquares.ParseGrid(marchingSquares.ConvertLevelToGrid(level)));
            SpawnEntities();
            mainCameraController.Init(level.columns, level.rows);
        }