|
|
@ -5,7 +5,7 @@ import { TeenPattieEventType } from "../../tool/TeenPattieEventType"; |
|
|
|
import { TeenPattieCommData } from "../TeenPattieCommData"; |
|
|
|
import { TeenPattieUpLayerLogic } from "../logic/TeenPattieUpLayerLogic"; |
|
|
|
import { TeenPattieGameSystem } from "./TeenPattieGameSystem"; |
|
|
|
import { GameNetCode, GamePanelConst } from "../../GameConst10001"; |
|
|
|
import { GameNetCode, GamePanelConst, gameErrorCode } from "../../GameConst10001"; |
|
|
|
import { TeenPattiePlayerLogic } from "../logic/TeenPattiePlayerLogic"; |
|
|
|
import { Game10001Res } from "../../comm/Game10001Res"; |
|
|
|
|
|
|
@ -95,7 +95,11 @@ export class TeenpattieGameProxySystem extends Component { |
|
|
|
} |
|
|
|
//玩家加入游戏
|
|
|
|
private onPlayerJoinGame(value: any) { |
|
|
|
if(value.code != 0) return; |
|
|
|
if(value.code == gameErrorCode.NotRoom || value.code != 0){ |
|
|
|
window["Toast"]?.getInstance().showToast(Game10001Res.getInstance()?.getString(`game.net.code.status.5`)); |
|
|
|
Message.send(TeenPattieEventType.GameExit); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(!this.isReconnect) return; |
|
|
|
this.isReconnect = false; |
|
|
|
this.isClickCountDown(); |
|
|
|