很多更新,服务端连接,新UI和系统
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user