Commit 757f6d6a authored by wildfirecode's avatar wildfirecode

1

parent d77d509b
import ComponentBase from "./ComponentBase";
import { HtmlTextParser } from "../HtmlTextParser";
import { gotoNextLevel } from "../../../src/panels/gotoNextLevel";
import SceneCtrl from "../ctrls/sceneCtrl";
import MainScene from "../../../src/mainScene/MainScene";
export default class Toast2 extends ComponentBase {
......@@ -12,7 +14,11 @@ export default class Toast2 extends ComponentBase {
this.toastLabel.textFlow = (new HtmlTextParser).parser('<u>继续闯关赢好礼</u>');
this.toastLabel.addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{
if(SceneCtrl.instance.currentScene instanceof MainScene){
}else {
gotoNextLevel();
}
egret.Tween.removeTweens(this);
this.alpha=0;
},this);
......
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