游戏结束
This commit is contained in:
@@ -73,6 +73,16 @@ export class StorageManager {
|
||||
return new DOStage(dataStage, levelStr)
|
||||
}
|
||||
|
||||
public cleanStage(): void {
|
||||
if (this.stageID && this.stageID.length > 0) {
|
||||
if (this.stageMap.has(this.stageID)) {
|
||||
this.stageMap.delete(this.stageID)
|
||||
}
|
||||
Laya.LocalStorage.removeItem(this.stageID)
|
||||
this.stageID = ""
|
||||
}
|
||||
}
|
||||
|
||||
public saveStage(): void {
|
||||
if (this.changed) {
|
||||
this.changed = false
|
||||
|
||||
Reference in New Issue
Block a user