private dictionarypanelcach= new dictionary();
private nbasepanel getpanel(uipaneltype paneltype)
}//例項化面板預製物
instpanel = gameobject.instantiate(resources.load(path)) as gameobject;
//把載入後的面板新增到canvas下面
instpanel.transform.setparent(canvastransform, false);//引數1:canvas座標,引數2:是否更改世界座標
panelcach.add(paneltype, instpanel);//將新面板新增到快取裡
debug.log("新建立");
}else
return instpanel.getcomponent();//返回面板的指令碼
}
C 字典 Dictionary 用法
dictionary提供快速的基於鍵值的元素查詢。結構是 dictionary 當你有很多元素的時候可以用它。它包含在system.collections.generic名控制項中。在使用前,你必須宣告它的鍵型別和值型別。1 using system 2 using system.collectio...
C 字典 Dictionary 用法
dictionary提供快速的基於鍵值的元素查詢。結構是 dictionary key value 當你有很多元素的時候可以用它。它包含在system.collections.generic名控制項中。在使用前,你必須宣告它的鍵型別和值型別。using system using system.col...
asp中Dictionary 資料字典 的使用
用法如下 set session user server.createobject scripting.dictionary 建立 session user add name username 新增 s session user name 取得值 blnisthere session user ex...