Merge pull request #248 from SpicyGangjeong/Develope

[Follow]
This commit is contained in:
qordlsgur
2025-11-28 11:22:32 +09:00
committed by GitHub
4 changed files with 12 additions and 12 deletions
+4 -9
View File
@@ -55,7 +55,7 @@ HRESULT CPlayer::Initialize(void* pArg)
return E_FAIL;
}
#ifdef _DEBUG
Load_KeyFrame();
//Load_KeyFrame();
#endif // _DEBUG
@@ -106,9 +106,7 @@ void CPlayer::Priority_Update(_float fTimeDelta)
void CPlayer::Update(_float fTimeDelta)
{
#ifdef _DEBUG
Update_CameraCoordinateSystem();
#endif // _DEBUG
m_pFSM->Update_State(fTimeDelta);
@@ -329,14 +327,14 @@ HRESULT CPlayer::Bind_ShaderResources()
}
void CPlayer::ReLockOnTarget()
{
SAFE_RELEASE(m_pLockOnMonster);
m_pLockOnMonster = m_pInfoInstance->Get_LockOnMonster();
if (nullptr != m_pLockOnMonster) {
SAFE_ADDREF(m_pLockOnMonster);
if (true == m_pLockOnMonster->isDead()) {
m_pLockOnMonster = nullptr;
}
}
}
#ifdef _DEBUG
void CPlayer::Update_CameraCoordinateSystem()
{
@@ -345,7 +343,6 @@ void CPlayer::Update_CameraCoordinateSystem()
XMStoreFloat3(&m_vCameraRightDir, XMVector3Normalize(XMVector3Cross(xmvUp, xmvCameraLook)));
XMStoreFloat3(&m_vCameraLookDir, xmvCameraLook);
}
#endif // _DEBUG
CPlayer* CPlayer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
@@ -376,8 +373,6 @@ void CPlayer::Free()
__super::Free();
SAFE_RELEASE(m_pLockOnMonster);
if (nullptr != m_pInfoInstance) {
CInfoInstance* pInfo = m_pInfoInstance;
m_pInfoInstance = nullptr;
+1 -1
View File
@@ -50,8 +50,8 @@ class CPlayer final : public CUnit
HRESULT Bind_ShaderResources();
void ReLockOnTarget();
#ifdef _DEBUG
void Update_CameraCoordinateSystem();
#ifdef _DEBUG
unique_ptr<BasicEffect> m_BasicEffect;
unique_ptr<PrimitiveBatch<VertexPositionColor>> m_Batch;
#endif // _DEBUG
@@ -123,8 +123,9 @@ CLayer* CGameObject_Manager::Find_Layer(_uint iLayerLevelIndex, const _wstring&
return nullptr;
auto iter = m_pLayers[iLayerLevelIndex].find(strLayerTag);
if (iter == m_pLayers[iLayerLevelIndex].end())
if (iter == m_pLayers[iLayerLevelIndex].end()){
return nullptr;
}
return iter->second;
}
@@ -150,8 +151,10 @@ void CGameObject_Manager::Free()
for (size_t i = 0; i < m_iNumLevels; i++)
{
for (auto& Pair : m_pLayers[i])
for (auto& Pair : m_pLayers[i]){
Pair.second->Clear_Layer();
SAFE_RELEASE(Pair.second);
}
m_pLayers[i].clear();
}
+2
View File
@@ -73,6 +73,7 @@ HRESULT CLayer::Clear_Layer()
{
for (auto& iter : m_ObjectList)
{
iter->Set_Dead();
SAFE_RELEASE(iter);
}
@@ -86,6 +87,7 @@ void CLayer::Free()
for (auto& iter : m_ObjectList)
{
iter->Set_Dead();
SAFE_RELEASE(iter);
} m_ObjectList.clear();