Ejemplo n.º 1
0
    private void OnPickUpLoot_Weapon(PickupLootEvent pickupItemEvent)
    {
        LootData_Weapon itemDropData = pickupItemEvent.LootData as LootData_Weapon;

        if (weapons.ContainsKey(itemDropData.WeaponData.WeaponType) == false)
        {
            weapons.Add(itemDropData.WeaponData.WeaponType, itemDropData.WeaponData);
            IWeapon weapon = Weapon.GetWeaponOfType(Weapon.GetType(itemDropData.WeaponData.WeaponType));
            EventSystem <WeaponPickupEvent> .FireEvent(GetWeaponPickupEvent(weapon, itemDropData.WeaponData));
        }
    }
Ejemplo n.º 2
0
 public override void SetDropItemData(LootData data)
 {
     itemDropData = data as LootData_Weapon;
 }