public PlayerItemData GetPlayerItem(PlayerItemData.ItemID id) { for (int i = 0; i < items.Count; i++) { if (items[i].id == id) { return(items[i]); } } return(null); }
public PlayerItemState GetPlayerItem(PlayerItemData.ItemID id) { for (int i = 0; i < gameItemStates.Count; i++) { if (gameItemStates[i].id == id) { return(gameItemStates[i]); } } return(null); }
public PlayerItemState(PlayerItemData playerData) { id = playerData.id; data = playerData; }