Пример #1
0
    private void AddWeaponIfExists(EquipmentSlotType slotType)
    {
        ScriptableItem item = equipmentManager.GetEquippedItem(slotType);

        if (item is ScriptableWeapon)
        {
            weapons.Add(new Weapon(
                            this.gameObject,
                            (ScriptableWeapon)item,
                            equipmentManager.GetEquippedItemGameObject(slotType)
                            ));
        }
    }