public static void NotifyCloseAllPanel() { try { LuaScriptMgr luaScriptMgr = Pandora.Instance.GetLuaScriptMgr(); PandoraImpl pandoraImpl = Pandora.Instance.GetPandoraImpl(); if (luaScriptMgr != null && pandoraImpl.GetIsLuaMgrInited()) { luaScriptMgr.CallLuaFunction("Common.NotifyCloseAllPanel", new object[0]); } } catch (Exception ex) { Logger.ERROR(ex.get_StackTrace()); } }
public static void NotifyPushData(string jsonData) { try { Logger.DEBUG("jsonData=" + jsonData); LuaScriptMgr luaScriptMgr = Pandora.Instance.GetLuaScriptMgr(); PandoraImpl pandoraImpl = Pandora.Instance.GetPandoraImpl(); if (luaScriptMgr != null && pandoraImpl.GetIsLuaMgrInited()) { luaScriptMgr.CallLuaFunction("Common.NotifyPushData", new object[] { jsonData }); } } catch (Exception ex) { Logger.ERROR(ex.get_StackTrace()); } }
public static void ExecCallback(uint callId, string result) { try { Logger.DEBUG("callId=" + callId.ToString() + " result=" + result); LuaScriptMgr luaScriptMgr = Pandora.Instance.GetLuaScriptMgr(); PandoraImpl pandoraImpl = Pandora.Instance.GetPandoraImpl(); if (luaScriptMgr != null && pandoraImpl.GetIsLuaMgrInited()) { luaScriptMgr.CallLuaFunction("Common.ExecCallback", new object[] { callId, result }); } } catch (Exception ex) { Logger.ERROR(ex.get_StackTrace()); } }