maj objectpooler script

This commit is contained in:
gregandev 2023-01-16 15:22:30 +01:00
parent 16fa9782e0
commit e0905c1d9c

View File

@ -145,8 +145,6 @@ public class ObjectLoader : MonoBehaviour
void LoadObject()
{
// GameObject clone = Instantiate(prefab, spawnPoint.position, spawnPoint.rotation);
// this.clone = clone;
GameObject clone = ObjectPooler.SharedInstance.GetPooledObject(prefabName);
if(clone != null)
{