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()); }
public virtual void Show(Item item) { gameObject.SetActive(true); itemName.SetValue(item.name); }