Ejemplo n.º 1
0
    List <ItemInstance> GetItemsInBag()
    {
        int score = ScoreManager.score;

        List <ItemDropRate> availableItems = LootTable.GetAvailableItems(score);
        List <ItemInstance> itemsInBag     = new List <ItemInstance>();

        int numberOfItems = ChooseNumberOfItems();

        for (int i = 0; i < numberOfItems; i++)
        {
            itemsInBag.Add(PickRandomItem(availableItems));
        }

        return(itemsInBag);
    }