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

            return(null);
        }
Ejemplo 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);
        }
Ejemplo n.º 3
0
 public PlayerItemState(PlayerItemData playerData)
 {
     id   = playerData.id;
     data = playerData;
 }