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

            multiplayerSession.JoinSession();
            InitMonoBehaviours();
            Utils.SetContinueMode(true);
            SceneManager.sceneLoaded += SceneManager_sceneLoaded;
        }