コード例 #1
0
        public void initChest(ItemChances item)
        {
            if (item == null)
            {
                Debug.Log("LevelGenerator: item from dropList == null");
            }

            List <ItemDropBase> chestStash = new List <ItemDropBase>();
            ItemDropBase        drop       = new ItemDropBase();

            //converts it
            drop.items        = item.item;
            drop.RandomAmount = item.StackAmount;
            chestStash.Add(drop);

            chest.ChestInit(chestStash);
        }