Skip to content

Commit

Permalink
Merge pull request #64 from MeniscusLight/master
Browse files Browse the repository at this point in the history
新toluaRuntime地址添加
  • Loading branch information
jarjin authored Jun 4, 2019
2 parents d5a632f + 49958ef commit f433075
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Assets/LuaFramework/Scripts/Manager/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ void OnInitialize() {

ObjPoolManager.Release("TestGameObject", gameObj);
var backObj = ObjPoolManager.Get("TestGameObject");
backObj.transform.SetParent(null);
if (backObj != null)
{
backObj.transform.SetParent(null);
}

Debug.Log("TestGameObject--->>>" + backObj);
}
Expand Down
9 changes: 8 additions & 1 deletion Assets/LuaFramework/Scripts/ObjectPool/GameObjectPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public GameObjectPool(string poolName, GameObject poolObjectPrefab, int initCoun

//o(1)
private void AddObjectToPool(GameObject go) {
if (go == null)
{
return;
}
//add to pool
go.SetActive(false);
availableObjStack.Push(go);
Expand All @@ -53,7 +57,10 @@ public GameObject NextAvailableObject() {
} else {
Debug.LogWarning("No object available & cannot grow pool: " + poolName);
}
go.SetActive(true);
if (go != null)
{
go.SetActive(true);
}
return go;
}

Expand Down
5 changes: 5 additions & 0 deletions ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ XlsxToLua: https://github.com/zhangqi-ulua/XlsxToLua
UnityHello: https://github.com/woshihuo12/UnityHello
Excel配置:https://github.com/sy-yanghuan/proton

【最新版地址,已支持Android arm64】
最新版LuaFrameWork地址 : https://github.com/jarjin/LuaFramework_UGUI_V2
最新版tolua_runtime地址 : https://github.com/jarjin/tolua_runtime_V2
目前由MeniscusLight维护和更新 : https://github.com/MeniscusLight

//-------------2018-05-26-------------
(1)更新tolua#到May 21, 2018版

Expand Down

0 comments on commit f433075

Please sign in to comment.