Пример #1
0
    void Awake()
    {
        GameLevelMaker.InitLevels();
        GameLevel gameLevel = GameLevelMaker.GetLevel(0);

        ScrollingObject.SetScrollSpeeds(gameLevel);
        RandomObjectPool.SetSpawnTimes(gameLevel);
    }
Пример #2
0
 private void UpdateLevelStuff(GameLevel newLevel)
 {
     gameLevel = newLevel;
     ScrollingObject.SetScrollSpeeds(newLevel);
     RandomObjectPool.SetSpawnTimes(newLevel);
 }