public string GetID() { return(m_item.GetID()); }
public static void SpawnInventoryNotification(GameObject prefab, Transform target_parent, IInventoryItem item, int count, string custom_text) { GameObject new_obj = spawnGameObject(prefab, target_parent); new_obj.GetComponent <UI_UnitEventView>().SetEvent(item.GetImage(), "+" + count + " " + item.GetID()); }
public ItemInInventory(IInventoryItem _base) : this(_base, PlayerPrefs.GetInt(_base.GetID(), 0)) { }