Ejemplo n.º 1
0
 public PlayerItem(ShopItemModel itemToUnlock)
 {
     uniqueItemID = itemToUnlock.uniqueNameID;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Looking up in a list could be optimized, is only a list to be able to show in inspector
 /// Ideally it generated a dictionary on start
 /// </summary>
 /// <param name="uniqueNameID"></param>
 public ShopItemModel GetItem(ShopItemModel.ItemID uniqueNameID)
 {
     return(itemModels.Find(x => x.GetID() == uniqueNameID));
 }