Esempio n. 1
0
    public void AddBagCapcity()
    {
        int nowBoughtTimes = UserProps.GetProperty_Int32(UserProperty.bagCapcity_expandedSize);

        UserProps.SetProperty_Int32(UserProperty.bagCapcity_expandedSize, nowBoughtTimes + 1);
        NotifyChanged((int)ENPropertyChanged.enUserPropertyChanged, null);
    }
Esempio n. 2
0
    public int GetBagCapcity()
    {
        BagInfo info    = GameTable.BagTableAsset.LookUp((int)BAGTYPEENUM.enCardBagType);
        int     capcity = 50;

        if (info != null)
        {
            capcity = info.m_initalSize;
        }
        return(capcity + UserProps.GetProperty_Int32(UserProperty.bagCapcity_expandedSize));
    }
Esempio n. 3
0
    public void AddDiamond(int diamond)
    {
        int bind_money = UserProps.GetProperty_Int32(UserProperty.bind_money);

        bind_money = bind_money + diamond;

        if (bind_money <= 0)
        {
            bind_money = 0;
        }

        UserProps.SetProperty_Int32(UserProperty.bind_money, bind_money);

        Debug.Log("添加或减少的钻石为:" + diamond + ",调整后的身上钻石为:" + bind_money);
    }
Esempio n. 4
0
    // 设置金币
    public void AddMoney(int money)
    {
        int num = UserProps.GetProperty_Int32(UserProperty.money);

        num = num + money;

        if (num <= 0)
        {
            num = 0;
        }

        UserProps.SetProperty_Int32(UserProperty.money, num);

        Debug.Log("设置金币:" + money + ",调整后的身上金币为:" + num);
        NotifyChanged((int)ENPropertyChanged.enUserPropertyChanged, null);
    }
Esempio n. 5
0
    //好友的数量
    public int GetFriendCount()
    {
        int initSize = GameTable.WorldParamTableAsset.Lookup((int)ENWorldParamIndex.enInitFriendCount).IntTypeValue;

        return(initSize + UserProps.GetProperty_Int32(UserProperty.friendCount_expandedSize));
    }
Esempio n. 6
0
 public int GetNowSelectTeam()
 {
     return(UserProps.GetProperty_Int32(UserProperty.nowSelect_team));
 }
Esempio n. 7
0
 // 获得当前等级
 public int GetLevel()
 {
     return(UserProps.GetProperty_Int32(UserProperty.level));
 }
Esempio n. 8
0
 //获取军资
 public int GetEnergy()
 {
     return(UserProps.GetProperty_Int32(UserProperty.energy));
 }
Esempio n. 9
0
 // 获得当前体力
 public int GetStamina()
 {
     return(UserProps.GetProperty_Int32(UserProperty.stamina));
 }
Esempio n. 10
0
 // 获得当前经验
 public int GetExp()
 {
     return(UserProps.GetProperty_Int32(UserProperty.exp));
 }
Esempio n. 11
0
 //获取友情点的数量
 public int GetFriendShipPoint()
 {
     return(UserProps.GetProperty_Int32(UserProperty.friendship_point));
 }
Esempio n. 12
0
 // 获得金币
 public int GetMoney()
 {
     return(UserProps.GetProperty_Int32(UserProperty.money));
 }
Esempio n. 13
0
 // 获得钻石
 public int GetDiamond()
 {
     return(UserProps.GetProperty_Int32(UserProperty.bind_money));
 }