using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public enum ItemType
{
Stone,
Default
}
public class ItemObject : ScriptableObject
{
public int Id;
public Sprite uiDisplay;
public ItemType type;
[TextArea(15,20)]
}
[System.Serializable]
public class Item
{
public string Name;
public int Id;
public Item(ItemObject item)
{
Name = item.name;
Id = item.Id;
}
}
Getting Object reference not set to an instance of an object again and again over here cant seem to fix it. Kindly help with this issue. Thankyou in Advance!