From 4624f34b0ee9dbf5386546bec1c1b4df0b632e97 Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 18 Feb 2021 13:56:26 +0800 Subject: [PATCH] syntax --- Assets/Mirror/Editor/NetworkScenePostProcess.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Editor/NetworkScenePostProcess.cs b/Assets/Mirror/Editor/NetworkScenePostProcess.cs index 6068b72cf..5df4ee144 100644 --- a/Assets/Mirror/Editor/NetworkScenePostProcess.cs +++ b/Assets/Mirror/Editor/NetworkScenePostProcess.cs @@ -89,14 +89,14 @@ static void PrepareSceneObject(NetworkIdentity identity) #if UNITY_2018_2_OR_NEWER GameObject prefabGO = PrefabUtility.GetCorrespondingObjectFromSource(identity.gameObject); #else - GameObject prefabGO = PrefabUtility.GetPrefabParent(identity.gameObject); + GameObject prefabGO = PrefabUtility.GetPrefabParent(identity.gameObject); #endif if (prefabGO) { #if UNITY_2018_3_OR_NEWER GameObject prefabRootGO = prefabGO.transform.root.gameObject; #else - GameObject prefabRootGO = PrefabUtility.FindPrefabRoot(prefabGO); + GameObject prefabRootGO = PrefabUtility.FindPrefabRoot(prefabGO); #endif if (prefabRootGO != null && prefabRootGO.GetComponentsInChildren().Length > 1) {