public void StartSession() { OnBeforeMultiplayerStart?.Invoke(); InitializeLocalPlayerState(); multiplayerSession.JoinSession(); InitMonoBehaviours(); SceneManager.sceneLoaded += SceneManager_sceneLoaded; }
public void StartSession() { DevConsole.RegisterConsoleCommand(this, "mpsave", false, false); OnBeforeMultiplayerStart?.Invoke(); InitializeLocalPlayerState(); multiplayerSession.JoinSession(); InitMonoBehaviours(); Utils.SetContinueMode(true); SceneManager.sceneLoaded += SceneManager_sceneLoaded; }
public IEnumerator StartSession() { DevConsole.RegisterConsoleCommand(this, "execute"); OnBeforeMultiplayerStart?.Invoke(); yield return(StartCoroutine(InitializeLocalPlayerState())); multiplayerSession.JoinSession(); InitMonoBehaviours(); Utils.SetContinueMode(true); SceneManager.sceneLoaded += SceneManager_sceneLoaded; }