From 629cd16016534aac8df6db749bc66dc17a94223c Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Mon, 18 Aug 2025 18:27:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8A=B6=E6=80=81=E6=9C=BAbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Script/AppMain/Manager/SaveSlotManager/SimpleSFM.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SimpleSFM.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SimpleSFM.cs index 814207ee..e077e8c5 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SimpleSFM.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SimpleSFM.cs @@ -75,9 +75,12 @@ namespace AxibugEmuOnline.Client.Tools if (nextState == null) return; if (m_current != null) m_current.OnExit(nextState); - nextState.LastState = m_current; - nextState.OnEnter(m_current); + + var preState = m_current; m_current = nextState; + + m_current.LastState = preState; + m_current.OnEnter(preState); } public T GetState() where T : State, new()