Beispiel #1
0
    void PopulateLevel()
    {
        _mapController.BuildMap();
        _entityController.StartGame();

        _cameraController.Init(_mapController.WorldBounds, _entityController.Player.transform, _gameEvents);

        _monsterCreator.RegisterSpawnPoints(FetchMonsterSpawnPoints());
        _monsterCreator.ProcessInitialSpawns();

        BuildTraps();
        BuildBlocks();

        ExtendedPopulate();

        _entityController.AddNewEntities();
        _entityController.RemovePendingEntities();
    }