private void Start()
        {
            ActiveLevel = CreateLevel();
            LevelArgs currentArgs = new LevelArgs(ActiveLevel, SaveLoadManager.GetLevel());

            EventManager.Instance.OnSceneIsCreated(currentArgs);

            //Uncomment it if you want to start game without an onboarding / main menu screen.
            //EventManager.Instance.OnGameStart(currentArgs);
        }
Exemple #2
0
 public void OnLevelSuccess(LevelArgs levelArgs) => levelSuccess?.Invoke(levelArgs);
Exemple #3
0
 public void OnSceneIsCreated(LevelArgs levelArgs) => sceneCreation?.Invoke(levelArgs);
Exemple #4
0
 public void OnGameStart(LevelArgs levelArgs) => gameStart?.Invoke(levelArgs);
 public void StartFirstMechanic(LevelArgs level)
 {
     EventManager.Instance.OnMechanicStart(level.Level.ActiveMechanic);
 }