Skip to content

Commit

Permalink
fixed mispelling in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
cjddmut committed Nov 7, 2016
1 parent 7f2f229 commit 582a357
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Assets/Test/MessageScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ private void OnDisable()
Debug.Log(gameObject.name + " OnDisable");
}

public void OnObjecteCreated()
public void OnObjectCreated()
{
Debug.Log(gameObject.name + " OnPooledObjCreated");
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Test/TestScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ private void OnDisable()
Debug.Log("obj released!");
}

public virtual void OnObjecteCreated()
public virtual void OnObjectCreated()
{
Debug.Log("obj parent created!");
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/UnityPooler/Scripts/IGameObjectPoolable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public interface IGameObjectPoolable
/// <summary>
/// This function is invoked when the GameObject is created.
/// </summary>
void OnObjecteCreated();
void OnObjectCreated();

/// <summary>
/// This function is invoked when the GameObject is reused.
Expand Down
2 changes: 1 addition & 1 deletion Assets/UnityPooler/Scripts/PoolableGameObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ private void SendCreationMessage(PoolableGameObject newObj)

for (int i = 0; i < _poolables.Length; i++)
{
_poolables[i].OnObjecteCreated();
_poolables[i].OnObjectCreated();
}
}

Expand Down

0 comments on commit 582a357

Please sign in to comment.