mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
We require 2018.3 now
This commit is contained in:
parent
0309f0b6f9
commit
792a356cdb
@ -92,14 +92,8 @@ public override void OnInspectorGUI()
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_2018_3_OR_NEWER
|
||||
if (PrefabUtility.IsPartOfPrefabAsset(m_NetworkIdentity.gameObject))
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user