From 64c139878baa33f74256330eabcc3eb16e443f92 Mon Sep 17 00:00:00 2001 From: liutao <821580467@qq.com> Date: Thu, 15 Aug 2024 18:18:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E5=9C=BA=E3=80=91=E9=99=90?= =?UTF-8?q?=E5=88=B6=E7=9B=B8=E6=9C=BA=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Code/Scripts/Gameplay/Level/State/BattleState.cs | 2 ++ .../Assets/Code/Scripts/Gameplay/Level/State/PrepareState.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/State/BattleState.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/State/BattleState.cs index 421a10d3745..974283530da 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/State/BattleState.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/State/BattleState.cs @@ -71,6 +71,8 @@ namespace Gameplay.Level CameraManager.Instance.MainCamera.GetComponent().leftMargin = cameraInfo.leftMarginInFight; CameraManager.Instance.MainCamera.GetComponent().topMargin = cameraInfo.topMarginInFight; CameraManager.Instance.MainCamera.GetComponent().bottomMargin = cameraInfo.bottomMarginInFight; + + CameraManager.Instance.MainCamera.GetComponent().AdjustSelf(); } protected override void _OnUpdate(float deltaTime) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/State/PrepareState.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/State/PrepareState.cs index 0ce915f5a6f..c85bea11d35 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/State/PrepareState.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/Level/State/PrepareState.cs @@ -35,6 +35,7 @@ namespace Gameplay.Level CameraManager.Instance.MainCamera.GetComponent().topMargin = cameraInfo.topMarginInInPre; CameraManager.Instance.MainCamera.GetComponent().bottomMargin = cameraInfo.bottomMarginInPre; + CameraManager.Instance.MainCamera.GetComponent().AdjustSelf(); } protected override void _OnUpdate(float deltaTime)