fix boss tank cross brick
This commit is contained in:
@@ -38,7 +38,7 @@ const ROOM_STATE = {
|
||||
// Room Scene
|
||||
// ============================================================
|
||||
const RoomScene = {
|
||||
_state: ROOM_STATE.IDLE,
|
||||
_state: ROOM_STATE.CREATING,
|
||||
_roomCode: '',
|
||||
_errorMsg: '',
|
||||
_countdown: 3,
|
||||
@@ -152,7 +152,7 @@ const RoomScene = {
|
||||
}));
|
||||
|
||||
unsubs.push(nm.on('disconnected', () => {
|
||||
if (this._state !== ROOM_STATE.IDLE) {
|
||||
if (this._state !== ROOM_STATE.CREATING) {
|
||||
this._errorMsg = t('common.disconnected');
|
||||
this._state = ROOM_STATE.ERROR;
|
||||
}
|
||||
@@ -198,7 +198,7 @@ const RoomScene = {
|
||||
if (shareManager) {
|
||||
shareManager.setShareContent({
|
||||
title: t('room.shareTitle'),
|
||||
imageUrl: '',
|
||||
imageUrl: 'js/ui/images/1v1.png',
|
||||
query: `roomId=${this._roomCode}`,
|
||||
});
|
||||
}
|
||||
@@ -214,7 +214,7 @@ const RoomScene = {
|
||||
|
||||
const shareData = {
|
||||
title: t('room.shareTitle'),
|
||||
imageUrl: '',
|
||||
imageUrl: 'js/ui/images/1v1.png',
|
||||
query: `roomId=${this._roomCode}`,
|
||||
};
|
||||
|
||||
@@ -240,7 +240,7 @@ const RoomScene = {
|
||||
|
||||
/**
|
||||
* One-step invite: auto-create room then immediately share the invite card.
|
||||
* This is the primary action on the IDLE screen — user clicks "Invite Friend"
|
||||
* This is the primary action — automatically creates a room and triggers invite share
|
||||
* and we handle everything in one go.
|
||||
* MUST be called within a touch event for WeChat policy compliance.
|
||||
* @private
|
||||
@@ -280,7 +280,7 @@ const RoomScene = {
|
||||
|
||||
const shareData = {
|
||||
title: t('room.shareTitle'),
|
||||
imageUrl: '',
|
||||
imageUrl: 'js/ui/images/1v1.png',
|
||||
query: `roomId=${roomId}`,
|
||||
};
|
||||
|
||||
@@ -505,7 +505,7 @@ const RoomScene = {
|
||||
|
||||
switch (this._state) {
|
||||
case ROOM_STATE.ERROR:
|
||||
this._state = ROOM_STATE.IDLE;
|
||||
this._state = ROOM_STATE.CREATING;
|
||||
this._errorMsg = '';
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user