From eeb1b3a4699b134eb2127e5929f7b53afa455f40 Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 8 Oct 2020 12:05:37 +0200 Subject: [PATCH] Syntax --- Assets/Mirror/Runtime/NetworkServer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index e18a6e510..b00be4362 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -906,13 +906,13 @@ public static void Spawn(GameObject obj, GameObject ownerPlayer) static bool CheckForPrefab(GameObject obj) { #if UNITY_EDITOR -#if UNITY_2018_3_OR_NEWER + #if UNITY_2018_3_OR_NEWER return UnityEditor.PrefabUtility.IsPartOfPrefabAsset(obj); -#elif UNITY_2018_2_OR_NEWER + #elif UNITY_2018_2_OR_NEWER return (UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource(obj) == null) && (UnityEditor.PrefabUtility.GetPrefabObject(obj) != null); -#else + #else return (UnityEditor.PrefabUtility.GetPrefabParent(obj) == null) && (UnityEditor.PrefabUtility.GetPrefabObject(obj) != null); -#endif + #endif #else return false; #endif