[add] ReparoObject 상호작용 추가
[add] 동굴 레벨전환 트리거박스 추가 [add] CLand RigidBody 추가
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "Effect_Container.h"
|
||||
#include "ThestralCarriage.h"
|
||||
#include "MapElement_Chest.h"
|
||||
#include "ReparoObject.h"
|
||||
|
||||
CPlayer::CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CUnit(pDevice, pContext)
|
||||
@@ -887,6 +888,24 @@ void CPlayer::Find_HiddenObjects()
|
||||
|
||||
}
|
||||
|
||||
void CPlayer::Check_Reparoobejcts()
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_REPARO);
|
||||
|
||||
if (nullptr == pLayer)
|
||||
return;
|
||||
|
||||
const list<class CGameObject*>* pReparoObjects = pLayer->Get_Objects();
|
||||
|
||||
for (auto& pObject : *pReparoObjects)
|
||||
{
|
||||
CReparoObject* pReparoObject = dynamic_cast<CReparoObject*>(pObject);
|
||||
if (nullptr != pReparoObject)
|
||||
if (pReparoObject->IsRepairable(false))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta)
|
||||
{
|
||||
_vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f));
|
||||
|
||||
Reference in New Issue
Block a user