Ejemplo n.º 1
0
        void Search_OtherCollider(Collider item)
        {
            ResultType result = ResultType.OK;
            var        t      = item.transform;

            //if (!NoMinus (t.localScale) || !NoMinus (t.lossyScale)) {
            if (!NoMinus(t.localScale))
            {
                result = ResultType.Minus;
            }

            if (result != ResultType.OK)
            {
                var info = new ObjInfo();
                info.go     = item.gameObject;
                info.result = result;
                objs.Add(info);
            }
        }
Ejemplo n.º 2
0
        void Search_MeshCollider(MeshCollider item, System.Func <MeshCollider, ResultType> condition)
        {
            var result = condition(item);

            if (result == ResultType.Self || result == ResultType.Parent)
            {
                if (IsReadable(item))
                {
                    return;
                }
            }

            if (result != ResultType.OK)
            {
                var info = new ObjInfo();
                info.go     = item.gameObject;
                info.result = result;
                objs.Add(info);
            }
        }