From a1e1c110cc7a2cba38b71e195c32a6fffddbbcda Mon Sep 17 00:00:00 2001 From: hyunbin14 Date: Thu, 27 Nov 2025 23:02:49 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[Add]=20=ED=94=8C=EB=A0=88=EC=9D=B4?= =?UTF-8?q?=EC=96=B4=20look=EB=B0=A9=ED=96=A5=20=EB=B3=B4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Client/Private/Level_GamePlay.cpp | 6 +-- .../Client/Private/Player_States.cpp | 43 ++++++++++++++++++- Jusin154_Team3D/Client/Public/Player.h | 2 +- .../Editor/Private/Level_ObjectViewer.cpp | 4 +- Jusin154_Team3D/Engine/Private/Animation.cpp | 2 +- Jusin154_Team3D/Engine/Private/Channel.cpp | 36 +++------------- Jusin154_Team3D/Engine/Private/Model.cpp | 1 - Jusin154_Team3D/Engine/Public/Channel.h | 1 - 8 files changed, 54 insertions(+), 41 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 0a411b686..23b5f6365 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -185,6 +185,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) return E_FAIL; + /*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) return E_FAIL;*/ @@ -211,9 +212,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag) HRESULT CLevel_GamePlay::Ready_Layer_Monster() { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))){ - return E_FAIL; - } + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))){ return E_FAIL; } @@ -227,6 +226,7 @@ HRESULT CLevel_GamePlay::Reday_Layer_EffectPool() if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함! return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 7a89bce5d..463d084ce 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -317,7 +317,7 @@ void CPlayer::Behavior_MoveEnter() m_fAmount = 1.f; } -HRESULT CPlayer::Behavior_MoveExitCheck() +HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) { pair<_uint, _bool> pairAnimInfo; _vector xmvLook = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f)); @@ -417,6 +417,45 @@ HRESULT CPlayer::Behavior_MoveExitCheck() _float cross = vCurLook.x * vInputDir.y - vCurLook.y * vInputDir.x; + _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f); + + vCameraLook = XMVector3Normalize(vCameraLook); + + _float2 fCamLook = { XMVectorGetX(vCameraLook), XMVectorGetZ(vCameraLook) }; + + _float angle = CMyTools::Get_Direction2D(vCurLook, fCamLook); + + _float degree = XMConvertToDegrees(angle); + if (m_pModelCom->Get_AnimIndex() == m_Animation[STATEANIM::JOG_FWD].first) + { + _float targetAngle = degree; + + if (m_pGameInstance->Key_Pressing(DIK_W)) + targetAngle = 0.f; + if (m_pGameInstance->Key_Pressing(DIK_D)) + targetAngle = 90.f; + if (m_pGameInstance->Key_Pressing(DIK_A)) + targetAngle = -90.f; + if (m_pGameInstance->Key_Pressing(DIK_S)) + targetAngle = 180.f; + + _float angleDiff = degree - targetAngle; + + if (angleDiff > 180.f) angleDiff -= 360.f; + if (angleDiff < -180.f) angleDiff += 360.f; + + _float threshold = 2.f; + + if (angleDiff > threshold) + { + m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); + } + else if (angleDiff < -threshold) + { + m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); + } + } + _bool bSkipAngleCheck = { false }; if (m_pFSM->IsEnable(FSMSTATE::JOG)) { if (iCurrentAnimIndex != m_Animation[STATEANIM::JOG_FWD].first) { @@ -799,7 +838,7 @@ void CPlayer::Add_FSM() CState_Move::STATE_MOVE_DESC Desc{}; Desc.pOwner = this; Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); }; - Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(fTimedelta); }; Desc.funcExitEvent = [this]() { Behavior_MoveExit(); }; Desc.funcPriorityUpdate = [this](_float fTimeDelta) { _vector xmvRight = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::RIGHT), 0.f)); diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 18795999f..4fa39b5e8 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -95,7 +95,7 @@ class CPlayer final : public CUnit void Behavior_IdleExit(); void Behavior_MoveEnter(); - HRESULT Behavior_MoveExitCheck(); + HRESULT Behavior_MoveExitCheck(_float fTimeDelta); void Behavior_MoveExit(); void Behavior_JumpEnter(); diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 4cf05529f..c113073e3 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -734,8 +734,8 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag) - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_Test))) - // return E_FAIL; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_Test))) + return E_FAIL; /*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) return E_FAIL;*/ diff --git a/Jusin154_Team3D/Engine/Private/Animation.cpp b/Jusin154_Team3D/Engine/Private/Animation.cpp index 9bffb0357..103855f9b 100644 --- a/Jusin154_Team3D/Engine/Private/Animation.cpp +++ b/Jusin154_Team3D/Engine/Private/Animation.cpp @@ -23,7 +23,7 @@ CAnimation::CAnimation(const CAnimation& rhs) , m_fTickPerSecond{ rhs.m_fTickPerSecond } , m_pSaveAnim{ rhs.m_pSaveAnim } , m_fAnimSpeed{rhs.m_fAnimSpeed } - ,m_iBoneCount{rhs.m_iBoneCount} + , m_iBoneCount{rhs.m_iBoneCount} { memcpy_s(m_TickPerSeconds, sizeof(_float) * 2, rhs.m_TickPerSeconds, sizeof(_float) * 2); diff --git a/Jusin154_Team3D/Engine/Private/Channel.cpp b/Jusin154_Team3D/Engine/Private/Channel.cpp index bfc749398..a35d6cee5 100644 --- a/Jusin154_Team3D/Engine/Private/Channel.cpp +++ b/Jusin154_Team3D/Engine/Private/Channel.cpp @@ -118,6 +118,10 @@ void CChannel::Update_TransformationMatirx( _uint* pCurrentKeyFrameIndex, CTransform* pTransform,_float m_fAmount) { + + if (0.f == fCurrentTrackPosition) + *pCurrentKeyFrameIndex = 0; + KEYFRAME LastKeyFrame = m_KeyFrames.back(); _vector vScale{}; @@ -171,7 +175,6 @@ void CChannel::Update_TransformationMatirx( if (Bones[m_iBoneIndex]->Compare_Name("Reference") && pTransform != nullptr) { - _float3 vCurRootPos; XMStoreFloat3(&vCurRootPos, vTranslation); @@ -192,8 +195,6 @@ void CChannel::Update_TransformationMatirx( vDeltaWorld *= 0.01f; vDeltaWorld *= m_fAmount; - - vDeltaWorld = XMVectorSetW(vDeltaWorld, 1.f); //pTransform->Set_State(STATE::POSITION,vDeltaWorld); pTransform->AccumulateMomentum(vDeltaWorld); @@ -235,6 +236,8 @@ void CChannel::Update_TransformationMatirx( vRotation = XMLoadFloat4(&m_vInitialRootRot); } + + m_BoneTransformationMatrix = XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation); @@ -250,8 +253,6 @@ void CChannel::ResetRootMotion() } - - KEYFRAME* CChannel::Get_Frame(_uint iIndex) { return &m_KeyFrames[iIndex]; @@ -262,31 +263,6 @@ void CChannel::Set_Frame(_uint iIndex, KEYFRAME& kf) m_KeyFrames[iIndex] = kf; } - -HRESULT CChannel::Initialize(HANDLE hFile, DWORD& dwByte) -{ - _uint iLength = { 0 }; - if (!ReadFile(hFile, &iLength, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, m_szName, iLength, &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_iBoneIndex, sizeof(_int), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_iNumKeyFrames, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - m_KeyFrames.resize(m_iNumKeyFrames); - for (_uint i = 0; i < m_iNumKeyFrames; ++i) { - if (!ReadFile(hFile, &m_KeyFrames[i], sizeof(KEYFRAME), &dwByte, nullptr)) { - return E_FAIL; - } - } - return S_OK; -} - HRESULT CChannel::Initialize(const CModel* pModel, SaveChannel* pSaveChannel) { strcpy_s(m_szName, pSaveChannel->ChannelName.c_str()); diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 018d03268..b9a2ec292 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -255,7 +255,6 @@ HRESULT CModel::Anim_Event(_float fRatio,_uint AnimIndex,function Event) return E_FAIL; } - HRESULT CModel::Render(_uint iMeshIndex) { m_Meshes[iMeshIndex]->Bind_Resources(); diff --git a/Jusin154_Team3D/Engine/Public/Channel.h b/Jusin154_Team3D/Engine/Public/Channel.h index 593a43116..872a26721 100644 --- a/Jusin154_Team3D/Engine/Public/Channel.h +++ b/Jusin154_Team3D/Engine/Public/Channel.h @@ -36,7 +36,6 @@ class ENGINE_DLL CChannel : public CBase } _char* Get_Name() { return m_szName; } private: - HRESULT Initialize(HANDLE hFile, DWORD& dwByte); // 바이너리 HRESULT Initialize(const class CModel* pModel, SaveChannel* pSaveChannel); // From d153bdb6a771afb3429fc0a36a38992790b453d6 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Thu, 27 Nov 2025 23:03:11 +0900 Subject: [PATCH 2/2] [fix] Release_Patch --- Jusin154_Team3D/Client/Private/Bombard.cpp | 3 +++ Jusin154_Team3D/Client/Private/Decendo.cpp | 3 +++ Jusin154_Team3D/Client/Private/EffectPool.cpp | 3 +++ Jusin154_Team3D/Client/Private/InfoInstance.cpp | 6 ++++++ Jusin154_Team3D/Client/Private/Level_GamePlay.cpp | 3 ++- Jusin154_Team3D/Client/Private/MainApp.cpp | 5 ++--- Jusin154_Team3D/Client/Private/Monster.cpp | 6 +++--- Jusin154_Team3D/Client/Private/MonsterInfo.cpp | 10 ++++++++-- Jusin154_Team3D/Client/Private/NomalJap.cpp | 3 +++ Jusin154_Team3D/Client/Private/Player.cpp | 6 +++--- Jusin154_Team3D/Client/Private/Protego.cpp | 3 +++ Jusin154_Team3D/Client/Public/Decendo.h | 3 +++ Jusin154_Team3D/Client/Public/EffectPool.h | 3 +++ .../Engine/Private/Character_Controller.cpp | 1 + 14 files changed, 46 insertions(+), 12 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Bombard.cpp b/Jusin154_Team3D/Client/Private/Bombard.cpp index 8ab1a810a..2455a30ca 100644 --- a/Jusin154_Team3D/Client/Private/Bombard.cpp +++ b/Jusin154_Team3D/Client/Private/Bombard.cpp @@ -214,12 +214,15 @@ void CBombard::Free() SAFE_RELEASE(m_pLight_Projectile); } +#ifdef _DEBUG void CBombard::Describe_Entity() { } +#endif // _DEBUG + HRESULT CBombard::Bind_ShaderResources() { return S_OK; diff --git a/Jusin154_Team3D/Client/Private/Decendo.cpp b/Jusin154_Team3D/Client/Private/Decendo.cpp index ebca51e45..ff839237b 100644 --- a/Jusin154_Team3D/Client/Private/Decendo.cpp +++ b/Jusin154_Team3D/Client/Private/Decendo.cpp @@ -249,6 +249,7 @@ void CDecendo::Free() SAFE_RELEASE(m_pProjectile); } +#ifdef _DEBUG void CDecendo::Describe_Entity() { @@ -262,6 +263,8 @@ void CDecendo::Describe_Entity() GUI::End(); } +#endif // _DEBUG + HRESULT CDecendo::Bind_ShaderResources() { diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 3b0dc25ca..530901d28 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -236,7 +236,10 @@ void CEffectPool::Free() SAFE_RELEASE(pEffect); } } +#ifdef _DEBUG void CEffectPool::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index abebb92ae..c69baa289 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -34,6 +34,9 @@ HRESULT CInfoInstance::Regist_PlayerAlly(CUnit* pUnit) HRESULT CInfoInstance::Deregist_PlayerAlly(CUnit* pUnit) { + if (nullptr == m_pMonsterInfo) { + return S_OK; // 게임 종료 된 상태 + } return m_pMonsterInfo->Deregist_PlayerAlly(pUnit); } @@ -44,6 +47,9 @@ HRESULT CInfoInstance::Regist_ActiveMonster(CMonster* pUnit) HRESULT CInfoInstance::Deregist_ActiveMonster(CMonster* pUnit) { + if (nullptr == m_pMonsterInfo) { + return S_OK; // 게임 종료 된 상태 + } return m_pMonsterInfo->Deregist_ActiveMonster(pUnit); } diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 0a411b686..7da20c0f4 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -182,8 +182,9 @@ HRESULT CLevel_GamePlay::Ready_Markers() HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))){ return E_FAIL; + } /*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) return E_FAIL;*/ diff --git a/Jusin154_Team3D/Client/Private/MainApp.cpp b/Jusin154_Team3D/Client/Private/MainApp.cpp index 5e53191fa..1458e0567 100644 --- a/Jusin154_Team3D/Client/Private/MainApp.cpp +++ b/Jusin154_Team3D/Client/Private/MainApp.cpp @@ -178,10 +178,9 @@ void CMainApp::Free() SAFE_RELEASE(m_pDevice); SAFE_RELEASE(m_pContext); - - m_pGameInstance->Release_Engine(); m_pInfoInstance->Release_Information(); - SAFE_RELEASE(m_pInfoInstance); + m_pGameInstance->Release_Engine(); + SAFE_RELEASE(m_pInfoInstance); SAFE_RELEASE(m_pGameInstance); } diff --git a/Jusin154_Team3D/Client/Private/Monster.cpp b/Jusin154_Team3D/Client/Private/Monster.cpp index 3ddb235bd..3f16d0919 100644 --- a/Jusin154_Team3D/Client/Private/Monster.cpp +++ b/Jusin154_Team3D/Client/Private/Monster.cpp @@ -14,7 +14,6 @@ CMonster::CMonster(const CMonster& Prototype) : CUnit(Prototype), m_pInfoInstance(CInfoInstance::GetInstance()) { - SAFE_ADDREF(m_pInfoInstance); } HRESULT CMonster::Initialize_Prototype() @@ -140,9 +139,10 @@ void CMonster::Free() SAFE_RELEASE(m_pTarget); if (nullptr != m_pInfoInstance){ - m_pInfoInstance->Deregist_ActiveMonster(this); + CInfoInstance* pInfo = m_pInfoInstance; + m_pInfoInstance = nullptr; + pInfo->Deregist_ActiveMonster(this); } - SAFE_RELEASE(m_pInfoInstance); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp index 3b45a35b0..e3339ea97 100644 --- a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp @@ -41,9 +41,12 @@ HRESULT CMonsterInfo::Deregist_PlayerAlly(CUnit* pUnit) for (list::iterator iter = m_PlayerAllies.begin(); iter != m_PlayerAllies.end();) { if (*iter == pUnit) { SAFE_RELEASE(*iter); - m_PlayerAllies.erase(iter); + iter = m_PlayerAllies.erase(iter); break; } + else { + ++iter; + } } return E_FAIL; } @@ -64,9 +67,12 @@ HRESULT CMonsterInfo::Deregist_ActiveMonster(CMonster* pUnit) for (list::iterator iter = m_ActiveMonsters.begin(); iter != m_ActiveMonsters.end();) { if (*iter == pUnit) { SAFE_RELEASE(*iter); - m_ActiveMonsters.erase(iter); + iter = m_ActiveMonsters.erase(iter); break; } + else { + ++iter; + } } return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index babd1d828..3510fff70 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -241,12 +241,15 @@ void CNomalJap::Free() Safe_Release(m_pProjectile_Side); } +#ifdef _DEBUG void CNomalJap::Describe_Entity() { } +#endif // _DEBUG + HRESULT CNomalJap::Bind_ShaderResources() { return S_OK; diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 121b6dd52..31ad2b978 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -34,7 +34,6 @@ CPlayer::CPlayer(const CPlayer& Prototype) : CUnit(Prototype), m_pInfoInstance(CInfoInstance::GetInstance()) { - SAFE_ADDREF(m_pInfoInstance); } HRESULT CPlayer::Initialize_Prototype() @@ -380,7 +379,9 @@ void CPlayer::Free() SAFE_RELEASE(m_pLockOnMonster); if (nullptr != m_pInfoInstance) { - m_pInfoInstance->Deregist_PlayerAlly(this); + CInfoInstance* pInfo = m_pInfoInstance; + m_pInfoInstance = nullptr; + pInfo->Deregist_PlayerAlly(this); } if (nullptr != m_pCallBack_Behavior) { @@ -397,7 +398,6 @@ void CPlayer::Free() SAFE_RELEASE(m_pCamPosition_TopDown_LookPart); SAFE_RELEASE(m_pCamPosition_ShoulderPart); SAFE_RELEASE(m_pEffectPool); - SAFE_RELEASE(m_pInfoInstance); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp index 29aeb4474..e2a1606fd 100644 --- a/Jusin154_Team3D/Client/Private/Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Protego.cpp @@ -164,12 +164,15 @@ void CProtego::Free() SAFE_RELEASE(m_pCircle); } +#ifdef _DEBUG void CProtego::Describe_Entity() { } +#endif // _DEBUG + HRESULT CProtego::Bind_ShaderResources() { return S_OK; diff --git a/Jusin154_Team3D/Client/Public/Decendo.h b/Jusin154_Team3D/Client/Public/Decendo.h index 122806d19..3bd2615df 100644 --- a/Jusin154_Team3D/Client/Public/Decendo.h +++ b/Jusin154_Team3D/Client/Public/Decendo.h @@ -46,7 +46,10 @@ class CDecendo final : public CEffect_Container static CDecendo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual void Free() override; CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG void Describe_Entity() override; +#endif // _DEBUG + }; NS_END diff --git a/Jusin154_Team3D/Client/Public/EffectPool.h b/Jusin154_Team3D/Client/Public/EffectPool.h index bc52ed37b..686a4e161 100644 --- a/Jusin154_Team3D/Client/Public/EffectPool.h +++ b/Jusin154_Team3D/Client/Public/EffectPool.h @@ -38,7 +38,10 @@ class CEffectPool final : public CGameObject static CEffectPool* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; virtual void Free() override; +#ifdef _DEBUG virtual void Describe_Entity() override; +#endif // _DEBUG + }; NS_END diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp index 9a9a2c363..11d05e60b 100644 --- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp +++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp @@ -318,6 +318,7 @@ void CCharacter_Controller::Free() { if (nullptr != m_pController) { m_pController->release(); + m_pController = nullptr; } __super::Free(); }