Beispiel #1
0
        public unsafe static IntPtr GetUnityTlsInterface()
        {
            if (m_GetUnityTlsInterface == null)
            {
                return(IntPtr.Zero);
            }

            IntPtr *param             = null;
            IntPtr  returnedException = IntPtr.Zero;
            IntPtr  intPtr            = UnityInternals.il2cpp_runtime_invoke(m_GetUnityTlsInterface, IntPtr.Zero, (void **)param, ref returnedException);

            Il2CppException.RaiseExceptionIfNecessary(returnedException);
            return(*(IntPtr *)UnityInternals.il2cpp_object_unbox(intPtr));
        }