Ejemplo n.º 1
0
    //经验条改变
    private void SliderChange()
    {
        int Allexp; int Nowexp;

        if (PlayerCache.loginInfo.vipLv == 0)
        {
            Allexp = 6; Nowexp = 0;
        }
        else
        {
            //升级所需经验
            Allexp = (int)VipDataTable.get(PlayerCache.loginInfo.vipLv + 1).exp;
        }
        //当前经验
        Nowexp            = (int)PlayerCache.loginInfo.vipExp;
        ValueText.text    = Nowexp.ToString() + "/" + Allexp.ToString();
        SufferValue.value = (float)Nowexp / Allexp;
    }
Ejemplo n.º 2
0
 //从本地拿到玩家的个人信息
 private void VIPData()
 {
     if (PlayerCache.loginInfo.vipLv > 0)
     {
         currentVipAward.text = "金币x" + AwardCountList[PlayerCache.loginInfo.signInDay].gold * (VipDataTable.get(PlayerCache.loginInfo.vipLv).singIn + 1) + " 换牌卡x" +
                                AwardCountList[PlayerCache.loginInfo.signInDay].changeCard * (VipDataTable.get(PlayerCache.loginInfo.vipLv).singIn + 1);
         nextVipAward.text = "金币x" + AwardCountList[PlayerCache.loginInfo.signInDay].gold * (VipDataTable.get(PlayerCache.loginInfo.vipLv + 1).singIn + 1) + " 换牌卡x" +
                             AwardCountList[PlayerCache.loginInfo.signInDay].changeCard * (VipDataTable.get(PlayerCache.loginInfo.vipLv + 1).singIn + 1);
     }
     else
     {
         currentVipAward.text = "您还不是VIP用户";
         nextVipAward.text    = "金币x" + AwardCountList[PlayerCache.loginInfo.signInDay].gold * (VipDataTable.get(1).singIn + 1) + " 换牌卡x" +
                                AwardCountList[PlayerCache.loginInfo.signInDay].changeCard * (VipDataTable.get(1).singIn + 1);
     }
 }