Пример #1
0
    public ArmorConfig(ArmorPosition[] allowedArmorSlots)
    {
        if (allowedArmorSlots == null) {
            Debug.Log("null armorSlots");
        }

        if (allowedArmorSlots.Length == 0) {
            Debug.Log("zero armorSlots");
        }

        m_ArmorConfiguration = new ArmorSlot[allowedArmorSlots.Length];
        for(int i=0; i < allowedArmorSlots.Length; i++) {
            m_ArmorConfiguration[i] = new ArmorSlot(allowedArmorSlots[i]);
        }
    }
Пример #2
0
 public ArmorSlot(ArmorPosition pos)
 {
     position = pos;
     armor = Armor.EMPTY_ARMOR;
 }