Exemplo n.º 1
0
 //点击领取礼包
 private void OnGetBtnClick(GameObject go)
 {
     debug.Log("On_Get_Btn_Click");
     //for (int i = 0; i <= vipModel.GetMaxVipLevel();i++ )
     //{
     //    foreach (int it in vipModel.GetVipAttByLevel(i))
     //    {
     //        print("vip等级:"+i+"数据"+it);
     //    }
     //}
     A3_VipProxy.getInstance().GetVipGift(nowlook_viplvl);
     A3_VipProxy.getInstance().GetVip();
     if (vipModel.Level < nowlook_viplvl)
     {
         flytxt.instance.fly(ContMgr.getCont("off_line_exp_vip"), 1);
     }
     else
     {
         flytxt.instance.fly(ContMgr.getCont("active_getSucc"), 1);
     }
 }
Exemplo n.º 2
0
        public override void onShowed()
        {
            Toclose = false;
            //isthisImage();
            //textVipState.text = vipModel.GetVipState();
            OnVipTabHanle(1);
            //tab1.SetActive(true);
            vipModel.OnLevelChange += OnVipLevelChange;
            vipModel.OnExpChange   += OnExpChange;
            A3_VipProxy.getInstance().GetVip();
            OnVipLevelChange();
            OnExpChange();
            OnGiftBtnRefresh();
            if (VipBtnList[0] != null)
            {
                BtnList();
                VipBtnList[0].GetComponent <Button>().interactable = false;
            }
            //vipGiftBtn.interactable = false;
            con.position    = v;
            conBtn.position = v1;
            gftCon.position = v2;
            lvl.text        = "1";
            nowlook_viplvl  = 1;
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR);
            base.onShowed();
            tip.SetActive(false);
            GRMap.GAME_CAMERA.SetActive(false);
            if (a3_relive.instans)
            {
                transform.SetAsLastSibling();
                a3_relive.instans.FX.SetActive(false);
            }

            CheckArrow();

            up.SetActive(false);
            down.SetActive(true);
        }