// Start is called before the first frame update void Start() { GameDataMgr.GetInstance().Init(); Debug.Log(GameDataMgr.GetInstance().GetItemInfo(1).name); BagMgr.GetInstance().Init(); //显示主面板 UIManager.GetInstance().ShowPanel <MainPanel>("MainPanel", E_UI_Layer.Bot); }
// Use this for initialization void Start() { //CustomSV里面限制的BagItem必须要实现接口IItemBase sv = new CustomSV <Item, BagItem>(); //初始预设体名 sv.InitItemResName("UI/BagItem"); //初始化格子间隔大小 以及 一行几列 sv.InitItemSizeAndCol(300, 250, 2); sv.InitContentAndSVH(content, 925); sv.InitInfos(BagMgr.GetInstance().items); }
private void Start() { BagMgr.GetInstance().InitItemsInfo(); UIManager.GetInstance().ShowPanel <BagPanel>("BagPanel"); }