Skip to content

Commit d447ff7

Browse files
committed
correct namespace
1 parent ce481ff commit d447ff7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Assets/PoolSample/Demo.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using ZBase.Foundation.Pooling;
77
using ZBase.Foundation.Pooling.UnityPools;
88

9-
namespace Project.Runtime
9+
namespace Pooling.Sample
1010
{
1111
public class Demo : MonoBehaviour
1212
{
@@ -19,12 +19,15 @@ public class Demo : MonoBehaviour
1919
private StackPool<int> _stackPool;
2020
private QueuePool<int> _queuePool;
2121

22+
private ZBase.Collections.Pooled.Generic.List<int> myList;
23+
2224
[SerializeField] private GameObject prefab;
2325
[SerializeField] private RectTransform canvas;
2426

2527
async void Start()
2628
{
2729
this._listPool = new ListPool<int>();
30+
2831
var rentList = this._listPool.Rent();
2932
for (int i = 0; i < 10; i++)
3033
{
@@ -34,7 +37,9 @@ async void Start()
3437
this._listPool.Return(rentList);
3538

3639
this._hashSetPool = SharedPool.Of<HashSetPool<int>>();
40+
3741
var rentHashSet = this._hashSetPool.Rent();
42+
3843
for (int i = 0; i < 10; i++)
3944
{
4045
rentHashSet.Add(i);

Assets/PoolSample/Pooling.Sample.asmdef

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Project.Runtime",
2+
"name": "Pooling.Sample",
33
"rootNamespace": "Pooling.Sample",
44
"references": [
55
"Unity.TextMeshPro",

0 commit comments

Comments
 (0)