Example #1
0
        public static GameObject LoadObject(Transform parent, string path, bool active)
        {
            GameObject ins = LoadResource.LoadAsGameObj(path);

            if (null == ins)
            {
                return(null);
            }
            ins.transform.SetParent(parent, active);
            return(ins);
        }