[add] Trail PreSetting

This commit is contained in:
kimnuri
2025-11-30 12:52:15 +09:00
parent 13fb8cfa36
commit 3e97797dc3
10 changed files with 77 additions and 26 deletions
+14 -7
View File
@@ -26,14 +26,17 @@ HRESULT CDecendo::Initialize_Prototype()
HRESULT CDecendo::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
if (FAILED(Ready_Components(pArg)))
if (FAILED(Ready_Components(pArg))) {
return E_FAIL;
}
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo")))
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo"))) {
return E_FAIL;
}
m_wstrEffectName = L"Decendo";
@@ -62,8 +65,9 @@ void CDecendo::Priority_Update(_float fTimeDelta)
void CDecendo::Update(_float fTimeDelta)
{
if (m_bVisible == false)
if (m_bVisible == false){
return;
}
__super::Update(fTimeDelta);
@@ -103,15 +107,17 @@ void CDecendo::Late_Update(_float fTimeDelta)
HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
{
if (pObject == nullptr)
if (pObject == nullptr) {
return E_FAIL;
}
/* 부모 할당 */
m_pOwner = pObject;
/* 피직스 생성*/
if (FAILED(Ready_Child()))
if (FAILED(Ready_Child())) {
return E_FAIL;
}
/* 초기 셋팅 초기화 */
Reset_EffectParts();
@@ -250,8 +256,9 @@ void CDecendo::Free()
{
__super::Free();
if (m_pPhysHitBox != nullptr)
if (m_pPhysHitBox != nullptr){
SAFE_RELEASE(m_pPhysHitBox);
}
SAFE_RELEASE(m_pProjectile_Blur);
SAFE_RELEASE(m_pProjectile);