Skip to content

Commit 18a6098

Browse files
committed
initialization problem found and fixed.
1 parent d17598e commit 18a6098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Scripts/ObjectPool/ObjectPooler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public GameObject SpawnFromPool(PooledObjectType tag, Vector3 pos, Quaternion ro
6161
objToSpawn.transform.rotation = rot;
6262

6363
IPooledObject iPooledObj = objToSpawn.GetComponent<IPooledObject>();
64-
64+
iPooledObj.Init();
6565
iPooledObj.OnObjectSpawn();
6666

6767
PoolDictionary[tag.ToString()].Enqueue(objToSpawn);

0 commit comments

Comments
 (0)