Пример #1
0
    public override void Show(Item item)
    {
        base.Show(item);

        Weapon weapon = item as Weapon;

        damage.SetValue(weapon.damage);
        fireRate.SetValue(weapon.effectSpawnRate, 40);
        magazineSize.SetValue(weapon.magazineSize);
        bulletSpeed.SetValue(weapon.bulletSpeed);
        accuracy.SetValue(AimSpreadToAccuracy(weapon.aimSpread));
        reloadTime.SetValue(weapon.reloadTime);
        type.SetValue(weapon.type.ToString());
    }
Пример #2
0
 public virtual void Show(Item item)
 {
     gameObject.SetActive(true);
     itemName.SetValue(item.name);
 }