fix: improve minigame reconnect flow
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XGame.MiniGame;
|
||||
using UObject = UnityEngine.Object;
|
||||
|
||||
namespace XGame
|
||||
@@ -35,6 +36,11 @@ namespace XGame
|
||||
get { return currentConfig == null ? string.Empty : currentConfig.id; }
|
||||
}
|
||||
|
||||
public GameObject StageIsolationUiRoot
|
||||
{
|
||||
get { return uiPanel; }
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
LoadConfig();
|
||||
@@ -178,6 +184,15 @@ namespace XGame
|
||||
|
||||
CacheUI();
|
||||
BuildCharacterButtons();
|
||||
ApplyStageIsolationState();
|
||||
}
|
||||
|
||||
public void ApplyStageIsolationState()
|
||||
{
|
||||
if (uiPanel != null && MiniGameStageIsolation.HasSuspendedLobby())
|
||||
{
|
||||
uiPanel.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
private void CacheUI()
|
||||
|
||||
Reference in New Issue
Block a user