Merge branch 'UI' into Develope

This commit is contained in:
qordlsgur
2026-01-11 21:26:01 +09:00
committed by GitHub
26 changed files with 877 additions and 53 deletions
+9 -2
View File
@@ -118,6 +118,7 @@ HRESULT CPlayer::Initialize(void* pArg)
// UI 연동 추가
m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); });
m_pInfoInstance->Add_Event(TEXT("Player_CanvasChange"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); });
m_pInfoInstance->Add_Event(TEXT("NpcInteraction"), [this](void* p) {this->Set_Interaction(*reinterpret_cast<_bool*>(p)); });
m_bAI = false;
@@ -169,6 +170,7 @@ void CPlayer::Update(_float fTimeDelta)
{
if (m_bNpcInteraction == true)
{
m_bCurrentInteraction = true;
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bNpcInteraction);
}
}
@@ -366,7 +368,7 @@ HRESULT CPlayer::Update_RaycastElements()
else
{
if (m_pCurrentNpcInteraction)
if (m_pCurrentNpcInteraction && !m_bCurrentInteraction)
{
m_bNpcInteraction = false;
m_pCurrentNpcInteraction = nullptr;
@@ -377,7 +379,7 @@ HRESULT CPlayer::Update_RaycastElements()
else
{
if (m_pCurrentNpcInteraction)
if (m_pCurrentNpcInteraction && !m_bCurrentInteraction)
{
m_bNpcInteraction = false;
m_pCurrentNpcInteraction = nullptr;
@@ -387,6 +389,11 @@ HRESULT CPlayer::Update_RaycastElements()
return S_OK;
}
void CPlayer::Set_Interaction(_bool bInteraction)
{
m_bCurrentInteraction = bInteraction;
}
HRESULT CPlayer::Render_Shadow(SHADOW eType)
{
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {