Пример #1
0
 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()));
 }
Пример #2
0
        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);
        }
Пример #3
0
 private static bool IsNativeObjectAlive(Object o)
 {
     return(o.GetCachedPtr() != IntPtr.Zero || (!(o is MonoBehaviour) && !(o is ScriptableObject) && Object.DoesObjectWithInstanceIDExist(o.GetInstanceID())));
 }
Пример #4
0
 private static bool IsNativeObjectAlive(Object o)
 {
     return(o.GetCachedPtr() != IntPtr.Zero);
 }