Пример #1
0
 private void OnEnable()
 {
     this.gameUid   = ModelManager.Instance.Get_accountData_X().AccountId;
     this.gameToken = ModelManager.Instance.Get_accountData_X().AccountId;
     this.phone     = ModelManager.Instance.Get_accountData_X().UserName;
     this.nickName  = ModelManager.Instance.Get_userData_X().NickName;
     this.extraData = GameVideo_CSTV.MD5Encrypt("xiaomeng_" + this.gameToken);
     UIEventListener.Get(this.LiveBtn).onClick     = new UIEventListener.VoidDelegate(this.OnClick_Live);
     UIEventListener.Get(this.VideoBtn).onClick    = new UIEventListener.VoidDelegate(this.OnClick_Video);
     UIEventListener.Get(this.IWantYouBtn).onClick = new UIEventListener.VoidDelegate(this.OnClick_IWantYou);
     MobaMessageManager.RegistMessage((ClientMsg)26033, new MobaMessageFunc(this.OnMsg_SubmitLiveSetting));
     if (!Application.isEditor)
     {
         if (this.cstv == null)
         {
             this.cstv = new CsTvInterface();
             this.cstv.initialize(new GameVideo_CSTV.CsTvCallback());
         }
         if (this.rec == null)
         {
             this.rec = new CsRecInterface();
             this.rec.init();
         }
     }
 }
Пример #2
0
            public GameUserInfo getUserInfo()
            {
                Debug.LogError("getUserInfo in");
                GameUserInfo result;

                result.userId = ModelManager.Instance.Get_accountData_X().AccountId;
                string accountId = ModelManager.Instance.Get_accountData_X().AccountId;
                string extraData = GameVideo_CSTV.MD5Encrypt("xiaomeng_" + accountId);

                result.userToken   = accountId;
                result.phoneNumber = ModelManager.Instance.Get_accountData_X().UserName;
                result.extraData   = extraData;
                return(result);
            }