Exemple #1
0
    }                                                            //撤单成功

    public override void OnRegister()
    {
        view.init();

        ////Listen to the view for a Signal
        //view.clickSignal.AddListener(onViewClicked);

        //添加 监听器
        TransferSignal.AddListener(OnTransferMoney);               //转金额 监听器
        RefreshMoneySignal.AddListener(OnRefreshMoney);            //刷新金额 监听器
        udinfoSignal.AddListener(OnuserBaseinfo);                  //用户中心 监听器
        GerenzijinSignal.AddListener(OnRecGerenZijin);             //个人资金 监听器
        TuanduizijiSignal.AddListener(OnRecTuanDuiZijin);          //团队资金 监听器
        qqMiMaQuKuanMiMaSignal.AddListener(OnRecQQMiMaQuKuanMiMa); //团队资金 监听器

        chedanSuccessSignal.AddListener(OnChedansuccess);

        recordBackSignal.AddListener(OnRecordBack);
        touzhuxiangxiSignal.AddListener(OnTouzhuxiangxi);
        AllbankInfoSignal.AddListener(OnAllBankInfo);
        logoutSignal.AddListener(OnLogOut);
        view.FillContent(UInfoModel);

        //进入用户中心界面必须先请求一次用户中心接口,并保存返回信息到全局
        NetworkManager.Instance.GetUserData();
    }
Exemple #2
0
 public void OnReceive(NetMessageHead head, MSG_GP_USER_PLAYJINERZH para)
 {
     if (para.iReturn == 0)        //成功
     {
         model.SetGold(para.iqpmoney);
         model.SetMoney(para.icpmoney);
         Signal.Dispatch();
         TransferSignal.Dispatch();
     }
     MsgSignal.Dispatch(new MsgPara(para.GetChResult(), 2));
 }
Exemple #3
0
 public override void OnRemove()
 {
     //移出 监听器
     TransferSignal.RemoveListener(OnTransferMoney);      //转金额 监听器
     RefreshMoneySignal.RemoveListener(OnRefreshMoney);   //移出 刷新金额 监听器
     udinfoSignal.RemoveListener(OnuserBaseinfo);         //移出 用户中心 监听器
     GerenzijinSignal.RemoveListener(OnRecGerenZijin);    //移出 个人资金 监听器
     TuanduizijiSignal.RemoveListener(OnRecTuanDuiZijin); //移出 团队资金 监听器
     chedanSuccessSignal.RemoveListener(OnChedansuccess);
     recordBackSignal.RemoveListener(OnRecordBack);
     touzhuxiangxiSignal.RemoveListener(OnTouzhuxiangxi);
     AllbankInfoSignal.RemoveListener(OnAllBankInfo);
     qqMiMaQuKuanMiMaSignal.RemoveListener(OnRecQQMiMaQuKuanMiMa);        //团队资金 监听器
     logoutSignal.RemoveListener(OnLogOut);
     Debug.Log("LoginView Mediator OnRemove");
 }