Example #1
0
 private void SetUpgradeUnits()
 {
     this.UpgradeUnits.Clear();
     for (int i = 0; i < this.m_datas.get_Count(); i++)
     {
         LevelUpUnitData levelUpUnitData = this.m_datas.get_Item(i);
         OOLevelUpUnit   oOLevelUpUnit   = new OOLevelUpUnit();
         oOLevelUpUnit.AttBegin     = levelUpUnitData.BeginStr;
         oOLevelUpUnit.AttBegin1    = levelUpUnitData.Begin.ToString();
         oOLevelUpUnit.AttEnd       = new Vector3(levelUpUnitData.Begin, levelUpUnitData.End, -1f);
         oOLevelUpUnit.BGVisibility = true;
         this.UpgradeUnits.Add(oOLevelUpUnit);
     }
     this.m_indexRolling = -1;
     this.IsRolling      = true;
     this.RollingNext();
 }
Example #2
0
    private void ChangeCareerSuccess(RoleChangeCareerNty down)
    {
        List <LevelUpUnitData> list            = new List <LevelUpUnitData>();
        LevelUpUnitData        levelUpUnitData = new LevelUpUnitData();
        string beginStr = AttrUtility.GetAttrName(GameData.AttrType.Fighting) + ":";

        levelUpUnitData.BeginStr = beginStr;
        levelUpUnitData.Begin    = (float)down.oldFighting;
        levelUpUnitData.End      = (float)down.newFighting;
        list.Add(levelUpUnitData);
        levelUpUnitData          = new LevelUpUnitData();
        beginStr                 = "生命:";
        levelUpUnitData.BeginStr = beginStr;
        levelUpUnitData.Begin    = (float)down.oldHp;
        levelUpUnitData.End      = (float)down.newHp;
        list.Add(levelUpUnitData);
        levelUpUnitData          = new LevelUpUnitData();
        beginStr                 = "攻击:";
        levelUpUnitData.BeginStr = beginStr;
        levelUpUnitData.Begin    = (float)down.oldAttack;
        levelUpUnitData.End      = (float)down.newAttack;
        list.Add(levelUpUnitData);
        levelUpUnitData          = new LevelUpUnitData();
        beginStr                 = "防御:";
        levelUpUnitData.BeginStr = beginStr;
        levelUpUnitData.Begin    = (float)down.oldDefence;
        levelUpUnitData.End      = (float)down.newDefence;
        list.Add(levelUpUnitData);
        levelUpUnitData          = new LevelUpUnitData();
        beginStr                 = "格挡:";
        levelUpUnitData.BeginStr = beginStr;
        levelUpUnitData.Begin    = (float)down.oldParryRatio;
        levelUpUnitData.End      = (float)down.newParryRatio;
        list.Add(levelUpUnitData);
        levelUpUnitData          = new LevelUpUnitData();
        beginStr                 = "暴击:";
        levelUpUnitData.BeginStr = beginStr;
        levelUpUnitData.Begin    = (float)down.oldCritRatio;
        levelUpUnitData.End      = (float)down.newCritRatio;
        list.Add(levelUpUnitData);
        ChangeCareerSuccessUIViewModel.Instance.ShowChangeCareer(list, this.RoleChangeProfession);
    }