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

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

            return(null);
        }
Esempio n. 3
0
 public PlayerItemState(PlayerItemData playerData)
 {
     id   = playerData.id;
     data = playerData;
 }