Esempio n. 1
0
        //---------------------------------------------------------------------
        void debug_log()
        {
            string            str             = "mColliderQuadTree::";
            TagColliderObject collider_object = null;

            foreach (var it in mColliderQuadTree)
            {
                if (it.QuadNodeObject == null)
                {
                    continue;
                }
                collider_object = (TagColliderObject)it.QuadNodeObject;
                str            += collider_object.getBulletColliders().Count + "::";
            }
            EbLog.Warning(str);
        }
Esempio n. 2
0
        //---------------------------------------------------------------------
        public void update()
        {
            _removeDestroyedCollider();

            mColliderQuadTree.clear();

            foreach (var it in mTagColliderList)
            {
                mColliderQuadTree.insert(it);
            }

            TagColliderObject collider_object = null;

            foreach (var it in mColliderQuadTree)
            {
                if (it.QuadNodeObject == null)
                {
                    continue;
                }
                collider_object = (TagColliderObject)it.QuadNodeObject;
                check(collider_object.getFishColliders(), collider_object.getBulletColliders());
            }
        }