很多更新,服务端连接,新UI和系统

This commit is contained in:
2026-04-17 20:09:41 +08:00
parent 85dfff28dd
commit e0bc0bbf08
910 changed files with 65191 additions and 1291 deletions
@@ -6,6 +6,7 @@ using UnityEngine.Networking;
using UnityEngine.SceneManagement;
using UnityEngineInternal;
using Bansonic;
using GameServer.Client;
public class GameManager : MonoBehaviour
{
@@ -1563,14 +1564,22 @@ public class GameManager : MonoBehaviour
// restore time scale to normal so UI animations driven by unscaled or scaled time behave correctly
try { Time.timeScale = 1f; } catch { }
string targetScene = "selectYourSongFirst";
ArenaRoomService arenaRoomService = ArenaRoomService.Instance;
if (arenaRoomService != null && arenaRoomService.IsInRoom)
{
arenaRoomService.MarkLocalGameplayExitedEarly();
targetScene = arenaRoomService.RoomSceneName;
}
// start coroutine to fade mask then load
if (blackMaskImage == null)
{
StartCoroutine(LoadSceneAsync("selectYourSongFirst"));
StartCoroutine(LoadSceneAsync(targetScene));
return;
}
StartCoroutine(FadeToBlackAndLoad("selectYourSongFirst", 0.25f));
StartCoroutine(FadeToBlackAndLoad(targetScene, 0.25f));
}
private IEnumerator LoadSceneAsync(string sceneName)