File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This asset will be used to get and return objects from and to the pool providing
44You can use this asset for reusability of your objects.
55
66
7- ## -------- ObjectPool<T >
7+ -------- ObjectPool<T >
88
99ObjectPool(string a_strObjectType, int a_iStartSize = 0)
1010
@@ -15,7 +15,7 @@ Pool.getObject() returns a object of type T from the pool and sets it to active.
1515Pool.returnToPool(T obj) to return the object to the pool and deactivates the object.
1616Pool.returnAll() to return all objects back into the pool and deactivates all the object.
1717
18- ## -------- IReusable
18+ -------- IReusable
1919
2020The reusable object of type T should be derived from IReusable
2121-- T.onRetrievedFromPool()
@@ -25,7 +25,7 @@ will be called when the object is returned to the pool.
2525
2626
2727
28- ## -------- MonoObjectPool<T >
28+ -------- MonoObjectPool<T >
2929To use an object pool for MonoBehaviour objects, use
3030
3131MonoObjectPool<T >(T a_Prefab, GameObject a_Parent, int a_iStartSize = 0)
You can’t perform that action at this time.
0 commit comments