public GameObject Spawn(GameObject prefab, Vector3 position, DataPool.EFetchType fetchType = DataPool.EFetchType.LOOP) { DataPool pool = FetchDataPool(prefab); return(pool.Spawn(position, fetchType)); }
public PooledObjectInstance FetchObject(GameObject prefab, DataPool.EFetchType type = DataPool.EFetchType.LOOP) { ValidatePoolContent(prefab); return(mPool[prefab.GetInstanceID()].Fetch(type)); }