a guest Feb 16th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- using System.Collections;
- using UnityEngine;
- public class Item // Unnecessary to specify any inheritance i.e. MonoBehaviour
- // Start and Update functions are also not needed for this.
- public int itemID = 0; // Default values when none are given with constructor below
- public string itemName = "Unnamed";
- public string itemDescription = "No Description";
- public Item(int id, string name, string description) // Constructor function
- this.itemID = id;
- this.itemName = name;
- this.itemDescription = description;
RAW Paste Data