Commit 72ec9d5e authored by zjz1994's avatar zjz1994

lattice回收

parent 2f51b2a8
......@@ -1068,7 +1068,7 @@ export default class MainScene extends Scene {
}
}
//初始化地图格子数据,包括生成口,联通口
//初始化地图格子数据,包括生成口,联通口,次数,新加入reCoverAllLattice----LATTICE回收
initLattices() {
var latticesD = this.chapterData.map.lattices;
//先格子
......@@ -5302,6 +5302,10 @@ export default class MainScene extends Scene {
if(!ilattice)continue;
this.recoverMapast(ilattice);
this.recoverEleast(ilattice);
if(ilattice){//回收引用
ilattice.reset(0);
Pool.recover(RecoverName.LATTICE,ilattice);
}
}
}
recoverMapast(lat:Lattice){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment