Skip to content

Commit 902ec81

Browse files
authored
Update Pool.cs
1 parent 85493e4 commit 902ec81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Runtime/Pool.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public void Populate(int count)
4848
{
4949
var entity = Object.Instantiate(_prefab);
5050
_entities.Push(entity);
51+
_instanceLookup.Add(entity.gameObject.GetHashCode(), this);
5152
entity.gameObject.SetActive(false);
5253
}
5354
}

0 commit comments

Comments
 (0)