Beispiel #1
0
 public string GetID()
 {
     return(m_item.GetID());
 }
Beispiel #2
0
    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());
    }
Beispiel #3
0
 public ItemInInventory(IInventoryItem _base) : this(_base, PlayerPrefs.GetInt(_base.GetID(), 0))
 {
 }