void Start() { poolMgr.CreatePool <MLObjectPool <TestObjectItem>, TestObjectItem>(preloadAmount: 10); }
void Start() { GameObject roleObj = MLResourceManager.Instance.LoadResource(POOL_ITEM_NAME, GameResourceType.RES_ROLE) as GameObject; poolMgr.CreatePool <MLPrefabPool, Transform>(roleObj.transform, 10); }