Skip to content

Commit 8cfee29

Browse files
authored
Update Pool.cs
1 parent 2088c3b commit 8cfee29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/Pool.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void Release(Poolable entity)
106106

107107
entity.transform.SetParent(null, false);
108108
entity.gameObject.SetActive(false);
109-
entity.ReturnToPool();
109+
entity.OnRelease();
110110
}
111111

112112
private Poolable GetEntityFromPool()
@@ -130,7 +130,7 @@ private Poolable GetEntityFromPool()
130130
}
131131
else
132132
{
133-
entity.ReturnFromPool();
133+
entity.OnGet();
134134
}
135135

136136
entity.gameObject.SetActive(true);

0 commit comments

Comments
 (0)