예제 #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;
            }
        }