private static void DestroyObject(GameObject obj) { if (obj == null) { if (LogFilter.logDev) { Debug.Log("NetworkServer DestroyObject is null"); } } else { NetworkIdentity identity; if (GetNetworkIdentity(obj, out identity)) { DestroyObject(identity, true); } } }