예제 #1
0
        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);
        }
예제 #2
0
 public void OnLevelSuccess(LevelArgs levelArgs) => levelSuccess?.Invoke(levelArgs);
예제 #3
0
 public void OnSceneIsCreated(LevelArgs levelArgs) => sceneCreation?.Invoke(levelArgs);
예제 #4
0
 public void OnGameStart(LevelArgs levelArgs) => gameStart?.Invoke(levelArgs);
예제 #5
0
 public void StartFirstMechanic(LevelArgs level)
 {
     EventManager.Instance.OnMechanicStart(level.Level.ActiveMechanic);
 }