Ejemplo n.º 1
0
    public static void ExcelToAsset()
    {
        fileName = "ItemInfo";
        ItemInfoMgr mgr = UnityEngine.ScriptableObject.CreateInstance <ItemInfoMgr>();

        mgr.itemInfoList = ReadExcel(excelPath);
        CreateAsset(mgr);
    }
Ejemplo n.º 2
0
    public override void Init()
    {
        base.Init();
        //pStatics = PlayerStatics.Instance;
        playerData = PlayerDataOperator.Instance.playerData;
        //itemMgr = ItemInfoMgr.instance;
        itemMgr    = FactoryMgr.Instance.GetData <ItemInfoMgr>("ItemInfo");
        mBtn_Close = Find <Button>("Btn_Close");
        mBtn_Buy   = Find <Button>("Btn_Buy");
        mTxt_Count = Find <Text>("Txt_Count");

        mTxt_Name      = Find <Text>("Txt_Name");
        mTxt_Introduce = Find <Text>("Txt_Introduce");
        mTxt_Diamond   = Find <Text>("Txt_Diamond");

        GoodsContent    = Find <Transform>("GoodsContent");
        PackageContent  = Find <Transform>("PackageContent");
        itemHoldList    = new List <ItemHold>();
        itemShopBtnList = new List <ItemShop>();
        SetItemHold();
        SetItemGoods();
        ItemIntroduceUpdate(0);
    }