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

            //Always do this last.
            NitroxServiceLocator.EndCurrentLifetimeScope();
        }
Пример #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();
        }
Пример #4
0
 public void Cleanup()
 {
     NitroxServiceLocator.EndCurrentLifetimeScope();
 }