private void MultiplayerMod_OnLevelWasLoadedEvent(int level) { SceneTransitionMessage stm = new SceneTransitionMessage { sceneName = BoneworksSceneManager.GetSceneNameFromScenePath(level) }; ServerSendToAll(stm, MessageSendType.Reliable); enemyPoolManager.FindAllPools(); }
public override void OnLevelWasLoaded(int level) { if (level == -1) { return; } MelonModLogger.Log("Loaded scene " + level.ToString() + "(" + BoneworksSceneManager.GetSceneNameFromScenePath(level) + ") (from " + SceneManager.GetActiveScene().name + ")"); OnLevelWasLoadedEvent?.Invoke(level); }