File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public interface IPoolable
77 event Action OnReturnToPoolRequested ;
88 event Action OnDestroyed ;
99
10- void Reset ( ) ;
10+ void Reset ( object [ ] args = null ) ;
1111 void Erase ( ) ;
1212 }
1313}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public T Get(object[] args = null)
5353 ? _objectPool . Dequeue ( )
5454 : Create ( args ) ;
5555
56- poolable . Reset ( ) ;
56+ poolable . Reset ( args ) ;
5757 return ( T ) poolable ;
5858 }
5959
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public T Get(object[] args = null)
5858 ? _objectPool . Pop ( )
5959 : Create ( args ) ;
6060
61- poolable . Reset ( ) ;
61+ poolable . Reset ( args ) ;
6262 return ( T ) poolable ;
6363 }
6464
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public T Get(object[] args = null)
5454 ? _objectPool . Pop ( )
5555 : Create ( args ) ;
5656
57- poolable . Reset ( ) ;
57+ poolable . Reset ( args ) ;
5858 return ( T ) poolable ;
5959 }
6060
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public MockPoolable()
1616 IsActive = true ;
1717 }
1818
19- public void Reset ( )
19+ public void Reset ( object [ ] args = null )
2020 {
2121 IsActive = true ;
2222 }
You can’t perform that action at this time.
0 commit comments