// Token: 0x060054D6 RID: 21718 RVA: 0x001D4270 File Offset: 0x001D2670 public static void Preload(GameObject prefab, int qty = 1) { SimplePool.Init(prefab, qty); GameObject[] array = new GameObject[qty]; for (int i = 0; i < qty; i++) { array[i] = SimplePool.Spawn(prefab, Vector3.zero, Quaternion.identity); } for (int j = 0; j < qty; j++) { SimplePool.Despawn(array[j]); } }
// Token: 0x060054D7 RID: 21719 RVA: 0x001D42CA File Offset: 0x001D26CA public static GameObject Spawn(GameObject prefab, Vector3 pos, Quaternion rot) { SimplePool.Init(prefab, 3); return(SimplePool.pools[prefab].Spawn(pos, rot)); }