示例#1
0
        public static InternalRes Allocate(string name)
        {
            InternalRes res = ObjectPool <InternalRes> .S.Allocate();

            if (res != null)
            {
                res.name = name;
            }
            return(res);
        }
示例#2
0
        public static InternalRes Allocate(string name)
        {
            InternalRes res = new InternalRes();

            if (res != null)
            {
                res.name = name;
                res.Load();
            }
            return(res);
        }