예제 #1
0
 void GenerateLevel()
 {
     Reset();
     _currentLevelConfig = GetRandomLevelConfig();
     PlacePlatforms(_currentLevelConfig.FieldSize);
     SpawnInteractableObjects();
     LevelGenerated?.Invoke();
 }
예제 #2
0
    public GameLevels(int level, int stage, GameLevelConfigs levelConfigs)
    {
        CurrentLevelNumber = level;
        CurrentStageNumber = stage;

        m_LevelsData = levelConfigs;

        CurrentLevelModel = GetLevelModel(CurrentLevelNumber);
        CurrentStageModel = GetStageModel(CurrentStageNumber);

        IsLastLevelUp = false;
    }