public PoolableObject SpawnPollableObject(Transform _prefab, Vector2 _spawnPosition) { Vector2 spawnPosition = _spawnPosition; PoolableObject newPoolableObject = PoolModule.Reuse(_prefab); newPoolableObject.transform.position = spawnPosition; return(newPoolableObject); }
public PoolableObject SpawnPollableObject(Transform _prefab, SpawnPointWheel _spawnPointWheel) { Vector2 spawnPosition = _spawnPointWheel.GetRandomSpawnPosition(); PoolableObject newPoolableObject = PoolModule.Reuse(_prefab); newPoolableObject.transform.position = spawnPosition; return(newPoolableObject); }