Example #1
0
        public static void Process()
        {
            // get the singleton
            ColPairMan pColPairMan = ColPairMan.PrivGetInstance();

            ColPair pColPair = (ColPair)pColPairMan.BaseGetActive();

            while (pColPair != null)
            {
                // set the current active
                pColPairMan.pActiveColPair = pColPair;

                // do the check for a single pair
                pColPair.Process();

                // advance to next
                pColPair = (ColPair)pColPair.pNext;
            }
        }
Example #2
0
        public static void Process()
        {
            ColPairMan pMan = ColPairMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            ColPair pColPair = (ColPair)pMan.BaseGetActive();

            while (pColPair != null)
            {
                //Set the current to active
                pMan.pActiveColPair = pColPair;

                //do the collision pair
                pColPair.Process();

                //go to next
                pColPair = (ColPair)pColPair.pNext;
            }
        }