Example #1
0
 /// <summary>
 /// Определение можно ли использовать одежу персонажу
 /// если можно, то использует
 /// </summary>
 /// <param name="wear"></param>
 public void Equip(Wear wear)
 {
     var result = wear.CanWearFor(Player);
     if (result) {
         wear.Equiped = true;
     }
 }
Example #2
0
        public void Equip(Wear wear)
        {
            var result = wear.CanWearFor(Player);

            if (result)
            {
                wear.Equiped = true;
            }
        }