Beispiel #1
0
        public Item()
        {
            ItemDatium i = Resources.Load <ItemData>("ItemData").GetItem(theName);

            if (i != null)
            {
                Name = i.Name;
                m_ID = i;
            }
        }
Beispiel #2
0
        //public GameObject ItemInstance;

        public Item(ItemData id)
        {
            ItemDatium i = id.GetItem(theName);

            if (i != null)
            {
                Name = i.Name;
                m_ID = i;
            }
        }