你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
Monica - 知识达人
赞同来自:
laya21126
要回复问题请先登录
2 个回复
Monica - 知识达人
赞同来自:
laya21126
赞同来自:
* 初始化 地图
*/
public function initMap(texture:Texture, bgID:int):void{
if(this.oldBgID != bgID){
oldBgID = bgID;
if(oldTexture){
oldTexture.destroy(true);
oldTexture = null;
}
oldTexture = texture;
}
if(texture){
this.mapImg.source = texture;
this.width = texture.width;
this.height = texture.height;
this.pos((Laya.stage.width - this.width)/2, (Laya.stage.height - this.height)/2);
}
}