all repos — RPG @ 44a6fb4aa7a60749bfe9d30472e7550b824ffe51

Fully functional 3D turn based role playing game coded in C# and base Unity.

Assets/Scripts/Utility/Inventory/Items/Potion.cs (view raw)

 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5[System.Serializable]
 6public class Potion : Item
 7{
 8    public Potion()
 9    {
10        name = "Potion";
11        price = 25;
12        effect = new Heal();
13        consumable = true;
14        description = "It smells like sulfur.";
15    }
16}