예제 #1
0
            static void CheckNewMaterial(GameObject activeObject)
            {
                var AllObjects = new List <Transform>();

                AllObjects.Add(activeObject.transform);
                Helpful.GetListOfAllChilds(activeObject.transform, AllObjects);
                ChangeNewMaterial(AllObjects, activeObject);
            }
예제 #2
0
            static void CheckCheckedMaterial(GameObject activeObject, Material mat)
            {
                var AllObjects = new List <Transform>();

                AllObjects.Add(activeObject.transform);
                Helpful.GetListOfAllChilds(activeObject.transform, AllObjects);
                if (mat != null)
                {
                    ChangeCheckedMaterial(AllObjects, activeObject, mat);
                }
                else
                {
                    ChangeCheckedMaterial(AllObjects, activeObject);
                }
            }