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); }
public void OnLevelSuccess(LevelArgs levelArgs) => levelSuccess?.Invoke(levelArgs);
public void OnSceneIsCreated(LevelArgs levelArgs) => sceneCreation?.Invoke(levelArgs);
public void OnGameStart(LevelArgs levelArgs) => gameStart?.Invoke(levelArgs);
public void StartFirstMechanic(LevelArgs level) { EventManager.Instance.OnMechanicStart(level.Level.ActiveMechanic); }