public static InternalRes Allocate(string name) { InternalRes res = ObjectPool <InternalRes> .S.Allocate(); if (res != null) { res.name = name; } return(res); }
public static InternalRes Allocate(string name) { InternalRes res = new InternalRes(); if (res != null) { res.name = name; res.Load(); } return(res); }