public static void OnStart() { string appID = msAppID4TDGA; string channelID = "" + SDKEntryMgr.GetChannel(); TalkingDataGA.OnStart(appID, channelID); bInit = true; }
// 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)); } }
// Update is called once per frame void Update() { SDKEntryMgr.Update(); }
// Use this for initialization void Start() { SDKEntryMgr.Start(); }
public int GetChanTag() { return(SDKEntryMgr.GetChanTag()); }
public int GetChannel() { return(SDKEntryMgr.GetChannel()); }