From 76c812431a74f133ba4300ae47d4d6904f145dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E7=9C=8B?= <1918891542@qq.com> Date: Wed, 12 Jul 2023 10:11:32 +0800 Subject: [PATCH] minor bug fix --- Assets/Scripts/umamusume/Gallop/Live/Director.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/umamusume/Gallop/Live/Director.cs b/Assets/Scripts/umamusume/Gallop/Live/Director.cs index 6fe9efc..0145b5e 100644 --- a/Assets/Scripts/umamusume/Gallop/Live/Director.cs +++ b/Assets/Scripts/umamusume/Gallop/Live/Director.cs @@ -502,7 +502,17 @@ namespace Gallop.Live if (Input.GetKeyDown(KeyCode.Escape)) { isExit = true; - UmaSceneController.LoadScene("Version2"); + + List transferObjs = new List() { + GameObject.Find("CriWare"), + }; + + UmaSceneController.LoadScene("Version2", + delegate () + { + transferObjs.ForEach(o => SceneManager.MoveGameObjectToScene(o, SceneManager.GetSceneByName("Version2"))); + }); + AssetBundle.UnloadAllAssetBundles(true); }