Exemplo n.º 1
0
 public void EquipSellClick(EquipInfoView equipInfoView)
 {
     if (selectedData != null)
     {
         PlayerData playData = EquipModel.SellPlayerEquip(selectedData);
         finalData = StaticDataModel.ReadEquipMerge(playData.equips);
         equiplistView.DisPlay_Choice(finalData, this, 1);
         bool isContains = false;
         for (int i = 0; i < finalData.Count; i++)
         {
             if (finalData[i].equipmentID == selectedData.equipmentID && finalData[i].strLevel == selectedData.strLevel)
             {
                 isContains = true;
                 break;
             }
         }
         if (!isContains)
         {
             selectedData = null;
             Destroy(equipInfoView.gameObject);
             return;
         }
         Num.text = playData.equips.Count + "/" + kucun;
         equipInfoView.count.text = (selectedData.count - 1).ToString();
     }
 }
Exemplo n.º 2
0
    public void ShowPackage()
    {
        DynamicDataModel.Init();

        data = DynamicDataModel.ReadData();
        //Debug.Log("玩家数据" + JsonMapper.ToJson(data));
        Num.text  = data.equips.Count + "/" + kucun;
        finalData = StaticDataModel.ReadEquipMerge(data.equips);

        equiplistView.DisPlay_Choice(finalData, this, Choice);
    }
Exemplo n.º 3
0
    public void RankUPClick(EquipInfoView equipInfoView)
    {
        RowEquipment equipDate = selectedData;

        PlayerData newList = EquipModel.StrLevelUp(equipDate);

        finalData = StaticDataModel.ReadEquipMerge(newList.equips);

        equiplistView.DisPlay_Choice(finalData, this, 1);

        TeamModel.EquioStrChange();

        Num.text = newList.equips.Count + "/" + kucun;
        equipInfoView.Display(selectedData, this);
    }