private static bool IsNativeObjectAlive(Object o) { if (o.GetCachedPtr() != IntPtr.Zero) { return(true); } if (o is MonoBehaviour || o is ScriptableObject) { return(false); } return(Object.DoesObjectWithInstanceIDExist(o.GetInstanceID())); }
private static bool IsNativeObjectAlive(Object o) { bool flag = o.GetCachedPtr() != IntPtr.Zero; bool result; if (flag) { result = true; } else { bool flag2 = o is MonoBehaviour || o is ScriptableObject; result = (!flag2 && Object.DoesObjectWithInstanceIDExist(o.GetInstanceID())); } return(result); }
private static bool IsNativeObjectAlive(Object o) { return(o.GetCachedPtr() != IntPtr.Zero || (!(o is MonoBehaviour) && !(o is ScriptableObject) && Object.DoesObjectWithInstanceIDExist(o.GetInstanceID()))); }
private static bool IsNativeObjectAlive(Object o) { return(o.GetCachedPtr() != IntPtr.Zero); }