private static void OnSceneUnload(AsyncOperation operation)
 {
     isSwitching = false;
     if (NetworkingManager.singleton.isServer)
     {
         SpawnManager.MarkSceneObjects();
         SpawnManager.FlushSceneObjects();
     }
     else
     {
         Debug.LogError("DESTROING OBJECTS");
         SpawnManager.DestroySceneObjects();
     }
 }
示例#2
0
 private static void OnSceneUnload(AsyncOperation operation)
 {
     isSwitching = false;
     if (NetworkingManager.singleton.isServer)
     {
         SpawnManager.MarkSceneObjects();
         SpawnManager.FlushSceneObjects();
     }
     else
     {
         if (LogHelper.CurrentLogLevel <= LogLevel.Normal)
         {
             LogHelper.LogError("DESTROING OBJECTS");
         }
         SpawnManager.DestroySceneObjects();
     }
 }