void GenerateLevel() { Reset(); _currentLevelConfig = GetRandomLevelConfig(); PlacePlatforms(_currentLevelConfig.FieldSize); SpawnInteractableObjects(); LevelGenerated?.Invoke(); }
public GameLevels(int level, int stage, GameLevelConfigs levelConfigs) { CurrentLevelNumber = level; CurrentStageNumber = stage; m_LevelsData = levelConfigs; CurrentLevelModel = GetLevelModel(CurrentLevelNumber); CurrentStageModel = GetStageModel(CurrentStageNumber); IsLastLevelUp = false; }