Esempio n. 1
0
    //初始化 数据统计
    public void InitAccount()
    {
        Server        curServer = Core.SM.curServer;
        PlayerManager player    = Core.Data.playerManager;

                #if UNITY_ANDROID && !UNITY_EDITOR
        if (account == null)
        {
            AndroidJavaClass  unityClass = new AndroidJavaClass(UNTIFY_CLASS);
            AndroidJavaObject activity   = unityClass.GetStatic <AndroidJavaObject>("currentActivity");
            activity.Call("runOnUiThread", new AndroidJavaRunnable(() => {
                TalkingDataGA.OnStart(TDataAppId, curServer.id.ToString());
                account = TDGAAccount.SetAccount(player.PlayerID.ToString());
                account.SetGameServer(curServer.id.ToString());
                account.SetLevel(player.Lv);
            }));
        }
        #endif

                #if UNITY_IPHONE
        NotificationServices.RegisterForRemoteNotificationTypes(
            RemoteNotificationType.Alert |
            RemoteNotificationType.Badge |
            RemoteNotificationType.Sound
            );


        TalkingDataGA.OnStart(TDataAppId, curServer.id.ToString());
        account = TDGAAccount.SetAccount(player.PlayerID.ToString());
        account.SetGameServer(curServer.id.ToString());
        //account.SetLevel(player.Lv);
        #endif
    }
Esempio n. 2
0
 /// <summary>
 /// 设置用户
 /// </summary>
 /// <param name="strUser"></param>
 public void SetAccount(string strUser)
 {
     if (!isRuntime)
     {
         return;
     }
     account = TDGAAccount.SetAccount(strUser);
 }
 public static TDGAAccount SetAccount(string accountId)
 {
     TDGAAccount account = new TDGAAccount();
     if ((Application.platform != RuntimePlatform.OSXEditor) && (Application.platform != RuntimePlatform.WindowsEditor))
     {
         _tdgaSetAccount(accountId);
     }
     return account;
 }
 private void OnGUI()
 {
     int num = 0;
     GUI.Box(new Rect(10f, 10f, (float) (Screen.width - 20), (float) (Screen.height - 20)), "Demo Menu");
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Create User"))
     {
         this.account = TDGAAccount.SetAccount("User" + this.index);
         this.index++;
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Account Level +1") && (this.account != null))
     {
         this.account.SetLevel(this.level++);
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Chagen Game Server + 'a'") && (this.account != null))
     {
         this.gameserver = this.gameserver + "a";
         this.account.SetGameServer(this.gameserver);
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Charge Request 10"))
     {
         TDGAVirtualCurrency.OnChargeRequest("order01", "iap", 10.0, "CH", 10.0, "PT");
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Charge Success 10"))
     {
         TDGAVirtualCurrency.OnChargeSuccess("order01");
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Reward 100"))
     {
         TDGAVirtualCurrency.OnReward(100.0, "reason");
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Mission Begin"))
     {
         TDGAMission.OnBegin("miss001");
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Mission Completed"))
     {
         TDGAMission.OnCompleted("miss001");
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Item Purchase 10"))
     {
         TDGAItem.OnPurchase("itemid001", 10, 10.0);
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Item Use 1"))
     {
         TDGAItem.OnUse("itemid001", 1);
     }
     if (GUI.Button(new Rect(90f, (float) (60 + (60 * num++)), (float) this.width, 50f), "Custome Event"))
     {
         Dictionary<string, object> parameters = new Dictionary<string, object>();
         parameters.Add("StartAppStartAppTime", "startAppMac#02/01/2013 09:52:24");
         parameters.Add("IntValue", 1);
         TalkingDataGA.OnEvent("action_id", parameters);
     }
 }
    void Start()
    {
        Debug.Log("start...!!!!!!!!!!");
#if UNITY_IPHONE
        UnityEngine.iOS.NotificationServices.RegisterForNotifications(
            UnityEngine.iOS.NotificationType.Alert |
            UnityEngine.iOS.NotificationType.Badge |
            UnityEngine.iOS.NotificationType.Sound);
#endif
        TalkingDataGA.OnStart("B54977E570492ED5B2CEDD9B3D69C16B", "your_channel_id");
        account = TDGAAccount.SetAccount("User01");
    }
Esempio n. 6
0
    public void InitTakingData(string key, string changel)
    {
 #if UNITY_ANDROID
        if (instance.useTaklingData)
        {
            TalkingDataGA.OnStart(key, changel);
            _TDGAAccount = TDGAAccount.SetAccount(TalkingDataGA.GetDeviceId());
            _TDGAAccount.SetAccountType(AccountType.ANONYMOUS);
            _TDGAAccount.SetLevel(1);
        }
#endif
    }
Esempio n. 7
0
 public static TDGAAccount SetAccount(string accountId)
 {
     TDGAAccount tDGAAccount = new TDGAAccount();
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         AndroidJavaObject accountObject = TDGAAccount.agent.CallStatic<AndroidJavaObject>("setAccount", new object[]
         {
             accountId
         });
         tDGAAccount.setAccountObject(accountObject);
     }
     return tDGAAccount;
 }
    public static void SetLevel(string accountId, int level)
    {
        TDGAAccount tDGAAccount = TDGAAccount.SetAccount(accountId);

        if (tDGAAccount != null)
        {
            tDGAAccount.SetLevel(level);
        }
        if (GlobalSettings.isLoginByHoolaiSDK)
        {
            ReYun.instance.Login(accountId, level);
        }
    }
Esempio n. 9
0
    void Start()
    {
        Debug.Log("start...!!!!!!!!!!");
#if UNITY_IPHONE
        NotificationServices.RegisterForRemoteNotificationTypes(
            RemoteNotificationType.Alert |
            RemoteNotificationType.Badge |
            RemoteNotificationType.Sound
            );
#endif
        TalkingDataGA.OnStart(TDataAppId, "your_channel_id");
        account = TDGAAccount.SetAccount("User01");
    }
Esempio n. 10
0
    public void InitTalkGame(string sdk, string cdkey, string serverIp)
    {
        if (TalkGameSwitch)
        {
            sdk = sdk.Replace("ePlatform_", "");

            TalkingDataGA.OnStart(appid, sdk);
            account = TDGAAccount.SetAccount(cdkey);

            if (account != null)
            {
                account.SetGameServer(serverIp);
            }
        }
    }
Esempio n. 11
0
 public static TDGAAccount SetAccount(string accountId)
 {
     if (TDGAAccount.account == null)
     {
         TDGAAccount.account = new TDGAAccount();
     }
     if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
     {
         AndroidJavaObject accountObject = TDGAAccount.GetAgent().CallStatic <AndroidJavaObject>("setAccount", new object[]
         {
             accountId
         });
         TDGAAccount.account.setAccountObject(accountObject);
     }
     return(TDGAAccount.account);
 }
Esempio n. 12
0
    /// <summary>
    /// 设置账户
    /// </summary>
    public static void SetAccount(RoleData role)
    {
        if (role == null)
        {
            Debug.Log("账户打点异常");
            return;
        }
        TDGAAccount account = TDGAAccount.SetAccount(TalkingDataGA.GetDeviceId() + "_" + role.Id);

        account.SetAccountName(role.Name);
        account.SetAccountType(AccountType.REGISTERED);
        account.SetLevel(role.Lv);
        account.SetAge(1);
        account.SetGender(role.Gender == GenderType.Male ? Gender.MALE : Gender.FEMALE);
        account.SetGameServer("1");
    }
Esempio n. 13
0
    public void InitDataRecord()
    {
        TalkingDataGA.OnStart("18CA14E84A59417B9266D490D14C50D7", "amazon");
        account = TDGAAccount.SetAccount(TalkingDataGA.GetDeviceId());

        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_ENTER_STAGE, EnterStageHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_PASS_STAGE, PassStageHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_FAIL_STAGE, FailStageHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_PASS_NEW_STAGE, PassNewStageHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_REVIVE_AD, ReviveADHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_REVIVE_GOLD, ReviveGOLDHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_BUY_WEAPON, BuyWeaponHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_UPGRADE_WEAPON, UpGradeWeaponHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_BUY_GEM, BuyGemHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_COMBINE_GEM, CombineGemHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_IAP_REQ, IAPReqHandle);
        GameCore.Instance.EventController.RegisteEvent(EVENT_TYPE.EVENT_LOGIC_IAP_SUCESS, IAPSucessHandle);
    }
Esempio n. 14
0
    void Start()
    {
        Debug.Log("start...!!!!!!!!!!");
#if UNITY_IPHONE
#if UNITY_5
        UnityEngine.iOS.NotificationServices.RegisterForNotifications(
            UnityEngine.iOS.NotificationType.Alert |
            UnityEngine.iOS.NotificationType.Badge |
            UnityEngine.iOS.NotificationType.Sound);
#else
        UnityEngine.iOS.NotificationServices.RegisterForNotifications(
            UnityEngine.iOS.NotificationType.Alert |
            UnityEngine.iOS.NotificationType.Badge |
            UnityEngine.iOS.NotificationType.Sound);
#endif
#endif
        TalkingDataGA.OnStart("0A33A9FA393A4EC898A788FC293DDD94", "your_channel_id");
        account = TDGAAccount.SetAccount("User01");
    }
Esempio n. 15
0
    public static TDGAAccount SetAccount(string accountId)
    {
        TDGAAccount account = new TDGAAccount();

        //if the platform is real device
        if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor)
        {
#if UNITY_IPHONE
            _tdgaSetAccount(accountId);
#elif UNITY_ANDROID && !UNITY_EDITOR
            AndroidJavaObject jobj = agent.CallStatic <AndroidJavaObject>("setAccount", accountId);
            account.setAccountObject(jobj);
#elif UNITY_WP8
            TalkingDataGAWP.TDGAAccount csObj = TalkingDataGAWP.TDGAAccount.setAccount(accountId);
            account.setAccountObject(csObj);
#endif
        }

        return(account);
    }
Esempio n. 16
0
    void Start()
    {
        if (instance != null)
        {
            return;
        }
        instance    = this;
        adLoadTimes = 0;
        DontDestroyOnLoad(gameObject);



#if UNITY_IOS
        //初始化talkingdata
        TalkingDataGA.OnStart("E6E6D9152518498E82080F5E7FCE53C7", "GameBoxIOS");
        TDGAAccount.SetAccount(TalkingDataGA.GetDeviceId());

        //初始化ironsource
        IronSource.Agent.init("a08caf45", IronSourceAdUnits.REWARDED_VIDEO, IronSourceAdUnits.INTERSTITIAL, IronSourceAdUnits.BANNER);
#elif UNITY_ANDROID
        //初始化talkingdata
        TalkingDataGA.OnStart("E6E6D9152518498E82080F5E7FCE53C7", "GameBoxGoogle");
        TDGAAccount.SetAccount(TalkingDataGA.GetDeviceId());

        //初始化ironsource
        IronSource.Agent.init("a1c25d55", IronSourceAdUnits.REWARDED_VIDEO, IronSourceAdUnits.INTERSTITIAL, IronSourceAdUnits.BANNER);
#endif

        IronSource.Agent.shouldTrackNetworkState(true);

        IronSourceEvents.onRewardedVideoAdShowFailedEvent += onRewardedVideoAdShowFailedEvent;
        IronSourceEvents.onRewardedVideoAdClosedEvent     += onRewardedVideoAdClosedEvent;
        IronSourceEvents.onRewardedVideoAdRewardedEvent   += onRewardedVideoAdRewardedEvent;
        IronSourceEvents.onInterstitialAdClosedEvent      += onInterstitialAdClosedEvent;

        IronSource.Agent.loadInterstitial();
    }
 private void Start()
 {
     Debug.Log("start...!!!!!!!!!!");
     NotificationServices.RegisterForRemoteNotificationTypes(RemoteNotificationType.Alert | RemoteNotificationType.Sound | RemoteNotificationType.Badge);
     TalkingDataGA.OnStart("B54977E570492ED5B2CEDD9B3D69C16B", "your_channel_id");
     this.account = TDGAAccount.SetAccount("User01");
 }
Esempio n. 18
0
    /// <summary>
    /// 登录成功,进入游戏界面
    /// </summary>
    /// <param name="msg"></param>
    private void RevcLoginSuc(MsgGlobal msg)
    {
        Debug.Log("UDP请求第一次登录成功");
        SDKManager.Instance.isWechatCallback = 0;
        GA.ProfileSignIn(PlayerInfo.Instance.mPlayerData.pid.ToString(), "wechat"); // 用户登录ID

        // TalkingData
        TDGAAccount tdAccount = TDGAAccount.SetAccount(PlayerInfo.Instance.mPlayerData.pid.ToString());

        tdAccount.SetAccountType(AccountType.TYPE1);
        tdAccount.SetAccountName(PlayerInfo.Instance.mPlayerData.name);
        if (PlayerInfo.Instance.mPlayerData.sex == 1)
        {
            tdAccount.SetGender(Gender.MALE);
        }
        else if (PlayerInfo.Instance.mPlayerData.sex == 2)
        {
            tdAccount.SetGender(Gender.FEMALE);
        }
        else
        {
            tdAccount.SetGender(Gender.UNKNOW);
        }

        MsgPlayerInfo data = msg.player_info;

        PlayerInfo.Instance.mPlayerData.ip = data.ip;

        PlayingGameInfo.Instance.mReconnectId = 3;
        if (RoomInfo.Instance.mRoomCode > 0) //断线重连
        {
            //UIManager.Instance.EnqueueTip("断线重连: " + RoomInfo.Instance.mRoomCode);
            if (data.roomCode == 1) //等待界面
            {
                PlayingGameInfo.Instance.mReconnectId = 1;
            }
            else if (data.roomCode == 2) //战斗
            {
                PlayingGameInfo.Instance.mReconnectId = 2;
            }
        }
        SavePlayerToken();
        ContextManager.Instance.PopAll();
        GameManager.Instance.SwitchGameStatus(EGameStatus.EHome);

        if (RoomInfo.Instance.mRoomCode <= 0)
        {
            //Android 可以直接进入不需要判断
            //#if UNITY_IPHONE && !UNITY_EDITOR
            Debug.Log(">>>>>>使用剪切板房间号信息登录");
            SDKManager.Instance.GetClipRoomCodeEnterRoom();
            //#endif
        }

        if (GameManager.Instance.mGameMode != EGameMode.EDebug)
        {
            SDKManager.Instance.yayaLogin();// 呀呀语音登录
        }

        // 高德初始化
        bool isIosSj = GameManager.Instance.mGameMode == EGameMode.EAppleOnLine && PlayerInfo.Instance.mUrlData.iosSj;

        if (!isIosSj)
        {
            SDKManager.Instance.doOpenLocationService();
        }
    }
Esempio n. 19
0
 public static void SetAccountId(string accountId)
 {
     TDGAAccount.SetAccount(accountId);
 }
Esempio n. 20
0
    public void SetAccount()
    {
        TDGAAccount account = TDGAAccount.SetAccount(TalkingDataGA.GetDeviceId());

        account.SetAccountType(AccountType.ANONYMOUS);
    }
Esempio n. 21
0
 public void SetAccount(string id)
 {
     TDAccount = TDGAAccount.SetAccount(id);
 }
Esempio n. 22
0
 private void OnDestroy()
 {
     if (GameAnalytics.account != null)
     {
         TalkingDataGA.OnEnd();
     }
     GameAnalytics.analytics = null;
     GameAnalytics.account = null;
     GameAnalytics.accountIDCache = string.Empty;
 }
Esempio n. 23
0
 public TDGAAccount TDGAAccountSetAccount(string accountId)
 {
     _tdGAAccount = TDGAAccount.SetAccount(accountId);
     return(_tdGAAccount);
 }
Esempio n. 24
0
 public static void SetAccount(string accountStr)
 {
     if (GameAnalytics.analytics == null)
     {
         return;
     }
     if (string.IsNullOrEmpty(accountStr))
     {
         return;
     }
     if (GameAnalytics.account != null && string.Compare(GameAnalytics.accountIDCache, accountStr) == 0)
     {
         return;
     }
     if (GameAnalytics.account == null)
     {
         TalkingDataGA.OnStart(GameAnalytics.appKey, GameAnalytics.ChannelId);
     }
     GameAnalytics.account = TDGAAccount.SetAccount(accountStr);
     if (GameAnalytics.account == null)
     {
         return;
     }
     GameAnalytics.account.SetAccountType(AccountType.REGISTERED);
     GameAnalytics.account.SetAccountName(accountStr);
     GameAnalytics.accountIDCache = accountStr;
 }
    private void OnGUI()
    {
        int num = 0;

        GUI.Box(new Rect(10f, 10f, (float)(Screen.width - 20), (float)(Screen.height - 20)), "Demo Menu");
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Create User"))
        {
            this.account = TDGAAccount.SetAccount("User" + this.index);
            this.index++;
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Account Level +1") && this.account != null)
        {
            this.account.SetLevel(this.level++);
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Chagen Game Server + 'a'") && this.account != null)
        {
            this.gameserver += "a";
            this.account.SetGameServer(this.gameserver);
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Charge Request 10"))
        {
            TDGAVirtualCurrency.OnChargeRequest("order01", "iap", 10.0, "CH", 10.0, "PT");
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Charge Success 10"))
        {
            TDGAVirtualCurrency.OnChargeSuccess("order01");
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Reward 100"))
        {
            TDGAVirtualCurrency.OnReward(100.0, "reason");
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Mission Begin"))
        {
            TDGAMission.OnBegin("miss001");
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Mission Completed"))
        {
            TDGAMission.OnCompleted("miss001");
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Item Purchase 10"))
        {
            TDGAItem.OnPurchase("itemid001", 10, 10.0);
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Item Use 1"))
        {
            TDGAItem.OnUse("itemid001", 1);
        }
        if (GUI.Button(new Rect(90f, (float)(60 + 60 * num++), (float)this.width, 50f), "Custome Event"))
        {
            TalkingDataGA.OnEvent("action_id", new Dictionary <string, object>
            {
                {
                    "StartAppStartAppTime",
                    "startAppMac#02/01/2013 09:52:24"
                },
                {
                    "IntValue",
                    1
                }
            });
        }
    }
 private void Start()
 {
     Debug.Log("start...!!!!!!!!!!");
     TalkingDataGA.OnStart("B54977E570492ED5B2CEDD9B3D69C16B", "your_channel_id");
     this.account = TDGAAccount.SetAccount("User01");
 }
 public void StartSession()
 {
     this.hasStarted = true;
     if ((GameData.instance != null) && (GameData.instance.LoginResponse != null))
     {
         this.account = TDGAAccount.SetAccount(GameData.instance.LoginResponse.userId);
     }
     if (this.useTestApp)
     {
         TalkingDataGA.OnStart(this.testAppId, this.platformId + "_" + this.channelId);
     }
     else
     {
         TalkingDataGA.OnStart(this.appId, this.platformId + "_" + this.channelId);
     }
 }
Esempio n. 28
0
 private void OnApplicationFocus(bool focusStatus)
 {
     if (focusStatus)
     {
         GameAnalytics.SetAccount();
     }
     else
     {
         if (GameAnalytics.account != null)
         {
             TalkingDataGA.OnEnd();
         }
         GameAnalytics.account = null;
         GameAnalytics.accountIDCache = string.Empty;
     }
 }
Esempio n. 29
0
    void OnGUI()
    {
        int i = 0;

        GUI.Box(new Rect(10, 10, Screen.width - 20, Screen.height - 20), "Demo Menu");

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Create User"))
        {
            account = TDGAAccount.SetAccount("User" + index);
            index++;
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Account Level +1"))
        {
            if (account != null)
            {
                account.SetLevel(level++);
            }
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Chagen Game Server + 'a'"))
        {
            if (account != null)
            {
                gameserver += "a";
                account.SetGameServer(gameserver);
            }
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Charge Request 10"))
        {
            TDGAVirtualCurrency.OnChargeRequest("order01", "iap", 10, "CH", 10, "PT");
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Charge Success 10"))
        {
            TDGAVirtualCurrency.OnChargeSuccess("order01");
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Reward 100"))
        {
            TDGAVirtualCurrency.OnReward(100, "reason");
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Mission Begin"))
        {
            TDGAMission.OnBegin("miss001");
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Mission Completed"))
        {
            TDGAMission.OnCompleted("miss001");
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Item Purchase 10"))
        {
            TDGAItem.OnPurchase("itemid001", 10, 10);
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Item Use 1"))
        {
            TDGAItem.OnUse("itemid001", 1);
        }

        if (GUI.Button(new Rect(left, top + step * i++, width, height), "Custome Event"))
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();
            dic.Add("StartApp" + "StartAppTime", "startAppMac" + "#" + "02/01/2013 09:52:24");
            dic.Add("IntValue", 1);
            TalkingDataGA.OnEvent("action_id", dic);
        }
    }
Esempio n. 30
0
 /// <summary>
 /// 设置账号
 /// </summary>
 /// <param name="account"></param>
 public void SetAccount(string account)
 {
     var a = TDGAAccount.SetAccount(account);
 }