cristianoxin 5 months ago
parent
commit
37045512ed
  1. 2
      assets/10001/src/game/TeenPattieGameEntity.ts
  2. 1
      assets/10001/src/game/logic/TeenPattieUpLayerLogic.ts
  3. 2
      assets/10001/src/sdk/GameVO.ts

2
assets/10001/src/game/TeenPattieGameEntity.ts

@ -16,7 +16,6 @@ export class TeenPattieGameEntity extends Component{
Message.add(TeenPattieEventType.GameExit,this.OnGameExit,this);
Message.add(GameConst.PLAYER_LOGIN_OUT,this.OnGameExit,this);
Message.add('Game_Authority_Success', this.reconnect, this);
Message.add(SocketConst.CONNECTED,this.reconnect, this);
this.init();
@ -25,7 +24,6 @@ export class TeenPattieGameEntity extends Component{
protected onDestroy(): void {
Message.remove(TeenPattieEventType.GameExit,this.OnGameExit,this);
Message.remove(GameConst.PLAYER_LOGIN_OUT,this.OnGameExit,this);
Message.remove('Game_Authority_Success', this.reconnect, this);
Message.remove(SocketConst.CONNECTED,this.reconnect, this);
}

1
assets/10001/src/game/logic/TeenPattieUpLayerLogic.ts

@ -161,6 +161,7 @@ export class TeenPattieUpLayerLogic extends Component {
private coun:number = 0
protected lateUpdate(dt: number): void {
if(!this.matchTips || !this.matchTips.isValid) return;
if(!this.matchTips.active || this.waitCountDown <= 0) return;
this.coun += dt;
if(this.coun >= 1){

2
assets/10001/src/sdk/GameVO.ts

@ -38,7 +38,7 @@ export const UserData = window["UserData"] || {
vipLevel: 0,//VIP等级
gameID:10001,//游戏id
roomID:0,//游戏房价ID
tableID:10327262,//桌子ID
tableID:0,//桌子ID
gameLevel:0,//游戏等级
agentID:1,//代理id
srcRoomId:0,//房间场次ID 初级场/中级场 断线重连回来用这个

Loading…
Cancel
Save