示例#1
0
文件: Player.cs 项目: Kotvitskiy/AoS
 public void Upgrade(Upgades type)
 {
     switch ((int)type)
     {
         case (int)Upgades.Armor:
             _bonusArmor++;
             break;
         case (int)Upgades.Damage:
             _bonusDamage+=2;
             break;
         case (int)Upgades.HP:
             _bonusHP+=5;
             break;
         default:
             break;
     }
 }
示例#2
0
文件: Player.cs 项目: Kotvitskiy/AoS
        public void Upgrade(Upgades type)
        {
            switch ((int)type)
            {
            case (int)Upgades.Armor:
                _bonusArmor++;
                break;

            case (int)Upgades.Damage:
                _bonusDamage += 2;
                break;

            case (int)Upgades.HP:
                _bonusHP += 5;
                break;

            default:
                break;
            }
        }