Exemplo n.º 1
0
    private UiGachaItem MakeItem(string fileName, string name, bool hasItem, string description)
    {
        UiGachaItem item = Instantiate(itemPrefab, itemParents);

        item.Initielize(fileName, name, hasItem, description, descriptionParents);

        return(item);
    }
Exemplo n.º 2
0
    private void Initialize()
    {
        List <GachaData> gachaDatas = DataManager.Instance.dataBaseLoader.gachaDatas;

        if (gachaDatas != null)
        {
            for (int i = 0; i < gachaDatas.Count; i++)
            {
                UiGachaItem item = MakeItem(gachaDatas[i].fileName, gachaDatas[i].itemName, gachaDatas[i].hasItem, gachaDatas[i].description);
                itemList.Add(gachaDatas[i].itemName, item);
            }
        }
    }