|
|
@ -95,7 +95,17 @@ export class TeenpattieGameProxySystem extends Component { |
|
|
|
} |
|
|
|
//玩家加入游戏
|
|
|
|
private onPlayerJoinGame(value: any) { |
|
|
|
if(value.code == gameErrorCode.NotRoom || value.code != 0){ |
|
|
|
switch(value.code){ |
|
|
|
case gameErrorCode.NotRoom: |
|
|
|
window["Toast"]?.getInstance().showToast(Game10001Res.getInstance()?.getString(`game.net.code.status.5`)); |
|
|
|
Message.send(TeenPattieEventType.GameExit); |
|
|
|
return |
|
|
|
case gameErrorCode.PlayerFilled: |
|
|
|
window["Toast"]?.getInstance().showToast(Game10001Res.getInstance()?.getString(`game.net.code.status.7`)); |
|
|
|
Message.send(TeenPattieEventType.GameExit); |
|
|
|
return |
|
|
|
} |
|
|
|
if(value.code != 0){ |
|
|
|
window["Toast"]?.getInstance().showToast(Game10001Res.getInstance()?.getString(`game.net.code.status.5`)); |
|
|
|
Message.send(TeenPattieEventType.GameExit); |
|
|
|
return; |
|
|
|