void Awake() { GameLevelMaker.InitLevels(); GameLevel gameLevel = GameLevelMaker.GetLevel(0); ScrollingObject.SetScrollSpeeds(gameLevel); RandomObjectPool.SetSpawnTimes(gameLevel); }
private void UpdateLevelStuff(GameLevel newLevel) { gameLevel = newLevel; ScrollingObject.SetScrollSpeeds(newLevel); RandomObjectPool.SetSpawnTimes(newLevel); }