Example #1
0
        void Start()
        {
            if (WeaponDatabase.ContainsAsset(testingItemID))
            {
                item = WeaponDatabase.GetItemFromAsset(WeaponDatabase.GetAsset(testingItemID));
                Debug.Log(item.Name);
                Debug.Log(item.Description);
            }

            if (item != null)
            {
                StringItem(item);
            }
            else
            {
                Debug.Log(string.Format("No item with item id of {0} found", testingItemID));
            }
        }