Exemple #1
0
 public static void ClassCleanup()
 {
     NitroxServiceLocator.EndCurrentLifetimeScope();
     if (Directory.Exists(tempSaveFilePath))
     {
         Directory.Delete(tempSaveFilePath, true);
     }
 }
Exemple #2
0
        public void StopCurrentSession()
        {
            SceneManager.sceneLoaded -= SceneManager_sceneLoaded;
            multiplayerSession.Disconnect();
            OnAfterMultiplayerEnd?.Invoke();

            //Always do this last.
            NitroxServiceLocator.EndCurrentLifetimeScope();
        }
Exemple #3
0
        public void StopCurrentSession()
        {
            SceneManager.sceneLoaded -= SceneManager_sceneLoaded;

            if (multiplayerSession.CurrentState.CurrentStage != MultiplayerSessionConnectionStage.DISCONNECTED)
            {
                multiplayerSession.Disconnect();
            }

            OnAfterMultiplayerEnd?.Invoke();

            //Always do this last.
            NitroxServiceLocator.EndCurrentLifetimeScope();
        }
Exemple #4
0
 public void Cleanup()
 {
     NitroxServiceLocator.EndCurrentLifetimeScope();
 }