예제 #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);
        }