[]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~~~~~");
                }
            }
已邀请:

赞同来自:

a.png

 

要回复问题请先

商务合作
商务合作