[Add] 상태 정상작동
This commit is contained in:
@@ -38,18 +38,6 @@ void CBroom::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CBroom::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->ComputeAnimation();
|
||||
|
||||
static _uint m_iIndex = 0;
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_1))
|
||||
m_iIndex++;
|
||||
if (m_pGameInstance->Key_Down(DIK_2))
|
||||
m_iIndex--;
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(m_iIndex);
|
||||
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
}
|
||||
|
||||
|
||||
@@ -77,9 +77,6 @@ void CPlayer::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CPlayer::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->ComputeAnimation();
|
||||
|
||||
|
||||
IsSprint();
|
||||
IsWalk();
|
||||
|
||||
|
||||
@@ -15,9 +15,15 @@ void CState_Combat::Enter()
|
||||
|
||||
HRESULT CState_Combat::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -31,7 +37,8 @@ HRESULT CState_Combat::Initialize(STATE_COMBAT_DESC* pDesc)
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pOwner = pDesc->pOwner;
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user