[]destroy 报错
for(let i = 1; i<= this.createCountList[floor] ; i++)
{
let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D;
if(floor1)
{
floor1.destroy();
console.log("destroy~~~~~");
}
}
{
let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D;
if(floor1)
{
floor1.destroy();
console.log("destroy~~~~~");
}
}
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
w1114367261
赞同来自: