Esempio n. 1
0
        private unsafe static void SendEvents(CullingGroup cullingGroup, IntPtr eventsPtr, int count)
        {
            CullingGroupEvent *ptr = (CullingGroupEvent *)eventsPtr.ToPointer();

            if (cullingGroup.m_OnStateChanged != null)
            {
                for (int i = 0; i < count; i++)
                {
                    cullingGroup.m_OnStateChanged(ptr[i]);
                }
            }
        }
Esempio n. 2
0
        private static unsafe void SendEvents(CullingGroup cullingGroup, IntPtr eventsPtr, int count)
        {
            CullingGroupEvent *pointer = (CullingGroupEvent *)eventsPtr.ToPointer();

            if (cullingGroup.m_OnStateChanged == null)
            {
                return;
            }
            for (int index = 0; index < count; ++index)
            {
                cullingGroup.m_OnStateChanged(pointer[index]);
            }
        }
        unsafe private static void SendEvents(CullingGroup cullingGroup, IntPtr eventsPtr, int count)
        {
            CullingGroupEvent *events = (CullingGroupEvent *)eventsPtr.ToPointer();

            if (cullingGroup.m_OnStateChanged == null)
            {
                return;
            }

            for (int i = 0; i < count; ++i)
            {
                cullingGroup.m_OnStateChanged(events[i]);
            }
        }