public void ChangeValues(int multiply) { var weapon = currentSlot._Item as SO_Weapon; valueController.ChangeMana(weapon.manaCost * multiply); valueController.ChangeHealth(weapon.healthCost * multiply); }
public virtual void TryUse() { if (_Item && _Item is SO_Consumable) { valueController.ChangeHealth((int)(_Item as SO_Consumable).healthEffect); valueController.ChangeMana((int)(_Item as SO_Consumable).manaEffect); Blink(); Remove(); UpdateInfo(); } else { Blink(); } }