Exemplo n.º 1
0
        private void SetDetailTexts(BaseData b, BaseData c)
        {
            string[] compare = b.Compare(c);
            unitDetailTexts[0].text  = b.Atk.ToString() + compare[1];
            unitDetailTexts[1].text  = b.Magic_str.ToString() + compare[2];
            unitDetailTexts[2].text  = b.Def.ToString() + compare[3];
            unitDetailTexts[3].text  = b.Magic_def.ToString() + compare[4];
            unitDetailTexts[4].text  = b.Hp.ToString() + compare[0];
            unitDetailTexts[5].text  = b.Physical_critical.ToString() + compare[5];
            unitDetailTexts[6].text  = b.Dodge.ToString() + compare[9];
            unitDetailTexts[7].text  = b.Magic_critical.ToString() + compare[6];
            unitDetailTexts[8].text  = b.Wave_hp_recovery.ToString() + compare[7];
            unitDetailTexts[9].text  = b.Wave_energy_recovery.ToString() + compare[8];
            unitDetailTexts[10].text = b.Life_steal.ToString() + compare[12];
            unitDetailTexts[11].text = b.Hp_recovery_rate.ToString() + compare[13];
            unitDetailTexts[12].text = b.Energy_recovery_rate.ToString() + compare[14];
            unitDetailTexts[13].text = b.Enerey_reduce_rate.ToString() + compare[15];
            unitDetailTexts[14].text = b.Accuracy.ToString() + compare[16];
            unitDetailTexts[15].text = data.love.ToString() + BaseData.Compare_2(data.love, data_save.love);
            int x = Mathf.RoundToInt(b.GetPowerValue(data.skillLevel, data.rarity >= 5));
            int y = Mathf.RoundToInt(c.GetPowerValue(data_save.skillLevel, data_save.rarity >= 5));

            unitDetailTexts[16].text = x + BaseData.Compare_2(x, y);
        }