Skip to content

Commit 77032df

Browse files
committed
k+f
1 parent cd306b4 commit 77032df

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Assets/Scripts/ObjectPool/ObjectPooler.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public GameObject SpawnFromPool(PooledObjectType tag, Vector3 pos, Quaternion ro
6565

6666
GameObject objToSpawn;
6767

68-
6968
if(PoolDictionary[tag].Count!=0)
7069
{
7170
objToSpawn = PoolDictionary[tag].Peek();
@@ -84,13 +83,6 @@ public GameObject SpawnFromPool(PooledObjectType tag, Vector3 pos, Quaternion ro
8483
objToSpawn = ExpandPool(tag, pos, rot);
8584
}
8685

87-
88-
89-
90-
91-
92-
Debug.Log(PoolDictionary[tag].Count);
93-
9486
return objToSpawn;
9587
}
9688

@@ -125,8 +117,6 @@ private GameObject ExpandPool(PooledObjectType tag, Vector3 pos, Quaternion rot)
125117
Pool[index].Size++;
126118

127119
return temp;
128-
//Pool.Add();
129-
130120
}
131121

132122
}

0 commit comments

Comments
 (0)