public void Equip(OnItemEquipEventData e)
    {
        EquipmentCollection equipment = e.Equipper
                                        .GetComponentInChildren <EquipmentCollection>();

        //add item to slot
        equipment.AddItemToSlot(e.EquipmentSlot, e.Item);
    }
Beispiel #2
0
    public void Equip(OnItemEquipEventData e)
    {
        StatCollection stats = e.Equipper
                               .GetComponentInChildren <StatCollection>();

        foreach (StatModifier s in StatBonuses)
        {
            stats.AddStat(s);
        }
    }
 public void Emit(OnItemEquipEventData e)
 {
     Handler.OnItemEquipEvent.Invoke(e);
 }