[Fix] 패링 수정
[Fix] 레이싱 끝나면 원위치로 이동
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user