Пример #1
0
        public static void OnStart()
        {
            string appID     = msAppID4TDGA;
            string channelID = "" + SDKEntryMgr.GetChannel();

            TalkingDataGA.OnStart(appID, channelID);
            bInit = true;
        }
Пример #2
0
        // SDK的Api执行完毕后将消息发送到此函数
        private void SDKApiResult(string result)
        {
            // 处理SDK的回调
            JsonData jd      = JsonMapper.ToObject(result);
            string   apiName = jd["api"].ToString();
            string   retJson = jd["ret"].ToString();

            SDKEntryMgr.OnSDKApi(apiName, retJson);
        }
    static int _CreateWCG_SDKEntryMgr(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                WCG.SDKEntryMgr obj = new WCG.SDKEntryMgr();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: WCG.SDKEntryMgr.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Пример #4
0
 // Update is called once per frame
 void Update()
 {
     SDKEntryMgr.Update();
 }
Пример #5
0
 // Use this for initialization
 void Start()
 {
     SDKEntryMgr.Start();
 }
Пример #6
0
 public int GetChanTag()
 {
     return(SDKEntryMgr.GetChanTag());
 }
Пример #7
0
 public int GetChannel()
 {
     return(SDKEntryMgr.GetChannel());
 }