コード例 #1
0
 void Start()
 {
     poolMgr.CreatePool <MLObjectPool <TestObjectItem>, TestObjectItem>(preloadAmount: 10);
 }
コード例 #2
0
    void Start()
    {
        GameObject roleObj = MLResourceManager.Instance.LoadResource(POOL_ITEM_NAME, GameResourceType.RES_ROLE) as GameObject;

        poolMgr.CreatePool <MLPrefabPool, Transform>(roleObj.transform, 10);
    }