コード例 #1
0
 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());
     }
 }
コード例 #2
0
 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());
     }
 }
コード例 #3
0
 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());
     }
 }