cristianoxin 5 months ago
parent
commit
eb1ef0380c
  1. 4
      assets/10001/src/game/system/TeenpattieGameProxySystem.ts

4
assets/10001/src/game/system/TeenpattieGameProxySystem.ts

@ -469,9 +469,9 @@ export class TeenpattieGameProxySystem extends Component {
// let index:number = this.getPlayerIndex(value.data.seatId)
const index:number = value.data.seatId;
console.warn("玩家退出ID", index);
for(const [index,item] of TeenPattieCommData.getInstance().allWatchPlayerData.entries()){
for(const [ind,item] of TeenPattieCommData.getInstance().allWatchPlayerData.entries()){
if(item.Uid == value.data.uid){
TeenPattieCommData.getInstance().allWatchPlayerData.splice(index,1);
TeenPattieCommData.getInstance().allWatchPlayerData.splice(ind,1);
if(item.Uid == UserData.userId){
console.log("***WatchPlayer****GameExit***");
Message.send(TeenPattieEventType.GameExit);

Loading…
Cancel
Save