Update
This commit is contained in:
@@ -287,7 +287,13 @@ namespace Hallucinate.UI
|
||||
if (_joinContainer != null) _joinContainer.style.display = DisplayStyle.Flex;
|
||||
if (_createContainer != null) _createContainer.style.display = DisplayStyle.None;
|
||||
if (_loungeContainer != null) _loungeContainer.style.display = DisplayStyle.None;
|
||||
_ = BasicSpawner.Instance?.StartLobby();
|
||||
|
||||
// Chỉ bắt đầu Lobby nếu chưa có session nào đang chạy
|
||||
var runner = BasicSpawner.Instance?.Runner;
|
||||
if (runner == null || !runner.IsRunning)
|
||||
{
|
||||
_ = BasicSpawner.Instance?.StartLobby();
|
||||
}
|
||||
}
|
||||
|
||||
public void ShowCreate()
|
||||
@@ -338,9 +344,6 @@ namespace Hallucinate.UI
|
||||
if (success)
|
||||
{
|
||||
ShowLounge(name);
|
||||
// Explicitly push the LobbyController to ensure it's the active UI screen.
|
||||
// This helps prevent unintended navigation away from the lounge.
|
||||
await uiManager.Push<LobbyController>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user