//-----------------------------------------------------------------
        protected void OnDestroy()
        {
            Util.CallGlobalLuaFunction("HandleUIMessage", m_lua_id, "OnDestroy");
            ClearClick();
#if ASYNC_MODE
            string abName = name.ToLower().Replace("panel", "");
            ResManager.UnloadAssetBundle(abName + AppConst.ExtName);
#endif
            Util.ClearMemory();
            Debug.Log("~" + name + " was destroy!");
        }
Exemplo n.º 2
0
 void Start()
 {
     AppFacade.LuaManager.InitStart();
     Util.CallGlobalLuaFunction("OnInitOK");     //初始化完成
 }
 protected void OnClick()
 {
     Util.CallGlobalLuaFunction("HandleUIMessage", m_lua_id, "OnClick");
 }
 protected void OnClickEvent(GameObject go)
 {
     Util.CallGlobalLuaFunction("HandleUIMessage", m_lua_id, "OnClick", go);
 }
 protected void Start()
 {
     Util.CallGlobalLuaFunction("HandleUIMessage", m_lua_id, "OnStart");
 }