diff --git a/Assets/Test/MessageScript.cs b/Assets/Test/MessageScript.cs index 158af9f..cb7369d 100644 --- a/Assets/Test/MessageScript.cs +++ b/Assets/Test/MessageScript.cs @@ -15,7 +15,7 @@ private void OnDisable() Debug.Log(gameObject.name + " OnDisable"); } - public void OnObjecteCreated() + public void OnObjectCreated() { Debug.Log(gameObject.name + " OnPooledObjCreated"); } diff --git a/Assets/Test/TestScript.cs b/Assets/Test/TestScript.cs index 8479952..6686958 100644 --- a/Assets/Test/TestScript.cs +++ b/Assets/Test/TestScript.cs @@ -15,7 +15,7 @@ private void OnDisable() Debug.Log("obj released!"); } - public virtual void OnObjecteCreated() + public virtual void OnObjectCreated() { Debug.Log("obj parent created!"); } diff --git a/Assets/UnityPooler/Scripts/IGameObjectPoolable.cs b/Assets/UnityPooler/Scripts/IGameObjectPoolable.cs index 073af60..9f112f0 100644 --- a/Assets/UnityPooler/Scripts/IGameObjectPoolable.cs +++ b/Assets/UnityPooler/Scripts/IGameObjectPoolable.cs @@ -8,7 +8,7 @@ public interface IGameObjectPoolable /// /// This function is invoked when the GameObject is created. /// - void OnObjecteCreated(); + void OnObjectCreated(); /// /// This function is invoked when the GameObject is reused. diff --git a/Assets/UnityPooler/Scripts/PoolableGameObject.cs b/Assets/UnityPooler/Scripts/PoolableGameObject.cs index 57cc298..d47a57c 100644 --- a/Assets/UnityPooler/Scripts/PoolableGameObject.cs +++ b/Assets/UnityPooler/Scripts/PoolableGameObject.cs @@ -379,7 +379,7 @@ private void SendCreationMessage(PoolableGameObject newObj) for (int i = 0; i < _poolables.Length; i++) { - _poolables[i].OnObjecteCreated(); + _poolables[i].OnObjectCreated(); } }