undo 问题
This commit is contained in:
@@ -329,7 +329,6 @@ export class Stage extends Laya.Script {
|
||||
} else {
|
||||
this.selectedBlock.setShowNumber(undo.show, 0)
|
||||
}
|
||||
// this.onSetBlock(this.selectedBlock)
|
||||
this.onUpdateScore()
|
||||
const undos = this.data.get_undos()
|
||||
if (undos.length > 0) {
|
||||
@@ -337,6 +336,7 @@ export class Stage extends Laya.Script {
|
||||
this.selectedBlock = this.blocks[last.index]
|
||||
this.onApplyBlock(this.selectedBlock)
|
||||
}
|
||||
this.onSetBlock(this.selectedBlock)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user