[Fix] 패링 수정

[Fix] 레이싱 끝나면 원위치로 이동
This commit is contained in:
hyunbin14
2026-01-09 21:51:39 +09:00
parent 96729b5f91
commit eaba7c8b0a
18 changed files with 259 additions and 233 deletions
@@ -62,7 +62,11 @@ void CProtego::Priority_Update(_float fTimeDelta)
void CProtego::Update(_float fTimeDelta)
{
if (m_bVisible == false)
{
dynamic_cast<CPlayer*>(m_pOwner)->Set_Shield(false);
return;
}
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
@@ -182,6 +186,7 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc)
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
dynamic_cast<CPlayer*>(m_pOwner)->Set_Shield(true);
m_pOwner->OnCollision(pOther, &CollisionDesc);
}
void CProtego::Free()