Ejemplo n.º 1
0
    public void ChangeValues(int multiply)
    {
        var weapon = currentSlot._Item as SO_Weapon;

        valueController.ChangeMana(weapon.manaCost * multiply);
        valueController.ChangeHealth(weapon.healthCost * multiply);
    }
Ejemplo n.º 2
0
 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();
     }
 }