很多更新,服务端连接,新UI和系统
This commit is contained in:
@@ -3,6 +3,7 @@ using System;
|
||||
using System.Collections;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
using GameServer.Client;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
@@ -599,7 +600,15 @@ public class PauseManager : MonoBehaviour
|
||||
Time.timeScale = 1f;
|
||||
try { OnPauseStateChanged?.Invoke(false); } catch { }
|
||||
|
||||
yield return LoadSceneAsync(ExitSceneName);
|
||||
string targetScene = ExitSceneName;
|
||||
ArenaRoomService arenaRoomService = ArenaRoomService.Instance;
|
||||
if (arenaRoomService != null && arenaRoomService.IsInRoom)
|
||||
{
|
||||
arenaRoomService.MarkLocalGameplayExitedEarly();
|
||||
targetScene = arenaRoomService.RoomSceneName;
|
||||
}
|
||||
|
||||
yield return LoadSceneAsync(targetScene);
|
||||
}
|
||||
|
||||
private IEnumerator LoadSceneAsync(string sceneName)
|
||||
|
||||
Reference in New Issue
Block a user