Commit ff7ae849 authored by spc's avatar spc

modified: src/xiaoxiaole/XxlScene.ts

parent f68ee2ab
...@@ -1118,7 +1118,8 @@ export class XxlScene extends Scene { ...@@ -1118,7 +1118,8 @@ export class XxlScene extends Scene {
that.addEventListener(FYGE.MouseEvent.MOUSE_UP, that.mouseUp, that); that.addEventListener(FYGE.MouseEvent.MOUSE_UP, that.mouseUp, that);
that.addEventListener(FYGE.Event.ENTER_FRAME, that.updateFrame, that) that.addEventListener(FYGE.Event.ENTER_FRAME, that.updateFrame, that)
GDispatcher.addEventListener("MatchCompelete", this.gameStart, that) GDispatcher.addEventListener("MatchCompelete", that.gameStart, that)
GDispatcher.addEventListener("outCallBackToPage", that.backToPage, that)
} }
...@@ -1185,7 +1186,9 @@ export class XxlScene extends Scene { ...@@ -1185,7 +1186,9 @@ export class XxlScene extends Scene {
} }
backToPage() {
sendTbNet(TbNetName.backToPage, {}, (s, res) => { console.log('backToPage') })
}
lt = 0 lt = 0
tt = 0 tt = 0
...@@ -1257,6 +1260,7 @@ export class XxlScene extends Scene { ...@@ -1257,6 +1260,7 @@ export class XxlScene extends Scene {
that.removeEventListener(FYGE.MouseEvent.MOUSE_DOWN, that.mouseDown, that) that.removeEventListener(FYGE.MouseEvent.MOUSE_DOWN, that.mouseDown, that)
that.removeEventListener(FYGE.MouseEvent.MOUSE_UP, that.mouseUp, that); that.removeEventListener(FYGE.MouseEvent.MOUSE_UP, that.mouseUp, that);
GDispatcher.removeEventListener("gameReset", this.reset) GDispatcher.removeEventListener("gameReset", this.reset)
GDispatcher.removeEventListener("outCallBackToPage", that.backToPage)
} }
......
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