We require 2018.3 now

This commit is contained in:
Paul Pacheco 2019-02-22 18:45:16 -06:00
parent 0309f0b6f9
commit 792a356cdb

View File

@ -92,14 +92,8 @@ public override void OnInspectorGUI()
} }
} }
#if UNITY_2018_3_OR_NEWER
if (PrefabUtility.IsPartOfPrefabAsset(m_NetworkIdentity.gameObject)) if (PrefabUtility.IsPartOfPrefabAsset(m_NetworkIdentity.gameObject))
return; return;
#else
PrefabType prefabType = PrefabUtility.GetPrefabType(m_NetworkIdentity.gameObject);
if (prefabType == PrefabType.Prefab)
return;
#endif
if (m_NetworkIdentity.gameObject.activeSelf && m_NetworkIdentity.netId == 0 && NetworkServer.active) if (m_NetworkIdentity.gameObject.activeSelf && m_NetworkIdentity.netId == 0 && NetworkServer.active)
{ {