private static void OnSceneUnload(AsyncOperation operation) { isSwitching = false; if (NetworkingManager.singleton.isServer) { SpawnManager.MarkSceneObjects(); SpawnManager.FlushSceneObjects(); } else { Debug.LogError("DESTROING OBJECTS"); SpawnManager.DestroySceneObjects(); } }
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(); } }