Skip to content

Commit 23a23dc

Browse files
committed
typo fix
1 parent a94daca commit 23a23dc

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

.idea/.idea.Unity-Object-Pooling/.idea/contentModel.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.Unity-Object-Pooling/.idea/workspace.xml

Lines changed: 4 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/CustomTools/ObjectPooling/Scripts/ObjectPool/IObjectPoolInitiazible.cs renamed to Assets/CustomTools/ObjectPooling/Scripts/ObjectPool/IObjectPoolInitializable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace CustomTools.ObjectPooling.Scripts.ObjectPool
22
{
3-
public interface IObjectPoolInitiazible
3+
public interface IObjectPoolInitializable
44
{
55
void Init();
66
}

Assets/CustomTools/ObjectPooling/Scripts/ObjectPool/ObjectPooler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ public GameObject SpawnFromPool(PooledObjectType pooledObjectType, Vector3 pos,
6767
objToSpawn.transform.rotation = rot;
6868

6969
IPooledObject iPooledObj = objToSpawn.GetComponent<IPooledObject>();
70-
IObjectPoolInitiazible iInitiazible = objToSpawn.GetComponent<IObjectPoolInitiazible>();
70+
IObjectPoolInitializable iInitializable = objToSpawn.GetComponent<IObjectPoolInitializable>();
7171

72-
iInitiazible?.Init();
72+
iInitializable?.Init();
7373

7474
// iPooledObj.Init(iPooledObj.ObjectPooler);
7575
iPooledObj.OnObjectSpawn();
@@ -135,9 +135,9 @@ private GameObject ExpandPool(PooledObjectType pooledObjectType, Vector3 pos, Qu
135135
iPool.PoolType = pooledObjectType;
136136

137137
IPooledObject iPooledObj = objToAdd.GetComponent<IPooledObject>();
138-
IObjectPoolInitiazible iInitiazible = objToAdd.GetComponent<IObjectPoolInitiazible>();
138+
IObjectPoolInitializable iInitializable = objToAdd.GetComponent<IObjectPoolInitializable>();
139139

140-
iInitiazible?.Init();
140+
iInitializable?.Init();
141141

142142
iPooledObj.OnObjectSpawn();
143143

0 commit comments

Comments
 (0)