From 65c4e5313240729680f19add4fd632a6b6ca7dcd Mon Sep 17 00:00:00 2001 From: bzx <496597135@qq.com> Date: Wed, 3 Sep 2025 14:28:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=B7=BB=E5=8A=A0=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E5=90=8E=E7=A6=81=E6=AD=A2=E5=BC=80=E6=9E=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/FR2_Cache.asset.meta | 8 -------- Assets/_KOF/Scripts/GameManager.cs | 2 +- Assets/_KOF/Scripts/MRInput.cs | 2 ++ ProjectSettings/ProjectSettings.asset | 4 +++- 4 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 Assets/FR2_Cache.asset.meta diff --git a/Assets/FR2_Cache.asset.meta b/Assets/FR2_Cache.asset.meta deleted file mode 100644 index ee3661c7..00000000 --- a/Assets/FR2_Cache.asset.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 7c25dfccc8fc1094ab5319a79f325def -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/_KOF/Scripts/GameManager.cs b/Assets/_KOF/Scripts/GameManager.cs index 8d0e760e..91b4f2c7 100644 --- a/Assets/_KOF/Scripts/GameManager.cs +++ b/Assets/_KOF/Scripts/GameManager.cs @@ -269,7 +269,7 @@ public class GameManager : NetworkBehaviour [Server] public void GameOver(GameState state) { - // gameState = state; + gameState = state; // foreach (string key in SettleInfos.Keys) // { // string[] titles = { "小菜一碟", "轻松拿捏", "荣耀勇士", "掌控全场", "队伍灵魂" diff --git a/Assets/_KOF/Scripts/MRInput.cs b/Assets/_KOF/Scripts/MRInput.cs index f74f43d9..5e447a43 100644 --- a/Assets/_KOF/Scripts/MRInput.cs +++ b/Assets/_KOF/Scripts/MRInput.cs @@ -102,6 +102,8 @@ public class MRInput : MonoBehaviour void Update() { + if (GameManager.Ins != null&& GameManager.Ins.gameState!= GameState.Playing) + return; #if !UNITY_EDITOR && UNITY_ANDROID && PICO if (_leftHandDevice != null) { diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 5558a5dd..cc51f425 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -141,7 +141,9 @@ PlayerSettings: visionOSBundleVersion: 1.0 tvOSBundleVersion: 1.0 bundleVersion: 1.0.0 - preloadedAssets: [] + preloadedAssets: + - {fileID: 1814176829808956018, guid: 58f40b12bbc864f3c96c6505a9a1e1e3, type: 2} + - {fileID: 11400000, guid: d0f8149c48842b4488cf6fb974cff9a2, type: 2} metroInputSource: 0 wsaTransparentSwapchain: 0 m_HolographicPauseOnTrackingLoss: 1