From 8530010fd7fc9cb18fedfad78e6e0cdea0b77ef1 Mon Sep 17 00:00:00 2001 From: hyunbin14 Date: Thu, 4 Dec 2025 10:17:41 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20=EC=97=90=EB=94=94=ED=84=B0=20=ED=94=8C?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=96=B4=20=EC=83=81=ED=83=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Editor/Private/Player_States.cpp | 33 ++++++++++++++++--- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/Jusin154_Team3D/Editor/Private/Player_States.cpp b/Jusin154_Team3D/Editor/Private/Player_States.cpp index 620a53606..be851101b 100644 --- a/Jusin154_Team3D/Editor/Private/Player_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Player_States.cpp @@ -494,8 +494,16 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) { pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; } - else - pairAnimInfo = m_Animation[STATEANIM::JOG_LEFT]; + else { + if (m_pModelCom->IsFinishedAnim() && iCurrentAnimIndex == m_Animation[STATEANIM::JOG_LEFT].first) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::JOG_LEFT]; + } + + } } m_fAmount = 0.5f; @@ -516,8 +524,16 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) { pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; } - else - pairAnimInfo = m_Animation[STATEANIM::JOG_RIGHT]; + else { + if (m_pModelCom->IsFinishedAnim() && iCurrentAnimIndex == m_Animation[STATEANIM::JOG_RIGHT].first) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::JOG_RIGHT]; + } + + } } m_fAmount = 0.5f; @@ -531,7 +547,14 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) } else if (m_pFSM->IsEnable(FSMSTATE::JOG)) { - pairAnimInfo = m_Animation[STATEANIM::JOG_BWD]; + if (m_pModelCom->IsFinishedAnim() && iCurrentAnimIndex == m_Animation[STATEANIM::JOG_BWD].first) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + else + { + pairAnimInfo = m_Animation[STATEANIM::JOG_BWD]; + } } else if (m_pFSM->IsEnable(FSMSTATE::WALK)) {