using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Item
{
public string name = "Item";
public Sprite icon;
[CreateAssetMenu(menuName = "TusObjetos/Items")]
public class Items : ScriptableObject
{
public List<Item> itemsList = new List<item>();
}
}
He creado este codigo, pero en
public List<Item> itemsList = new List<item>();
Me da el siguiente error:
Assets/Scripts/Item.cs(16,48): error CS0246: The type or namespace name `item' could not be found. Are you missing an assembly reference?
Alguien me puede ayudar?