diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index c9acb1d7f..eaf158484 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -44,9 +44,9 @@ HRESULT CEffectPool::Initialize(void* pArg) return E_FAIL; } - //if (FAILED(Ready_Effect())) { - // return E_FAIL; - //} + if (FAILED(Ready_Effect())) { + return E_FAIL; + } return S_OK; diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp index aca9ea881..f6a396819 100644 --- a/Jusin154_Team3D/Client/Private/Goblin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin.cpp @@ -14,6 +14,8 @@ #include "State_Combat.h" #pragma endregion +#include "EffectParts.h" + CGoblin::CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CMonster(pDevice, pContext) @@ -296,6 +298,46 @@ HRESULT CGoblin::Ready_Parts() Get_PartObject()->Set_Visible(false); +#pragma region EFFECT + /* EFFECT */ + + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + + + if (FAILED(Add_PartObject("Goblin_Particle",g_iStaticLevel, &m_pGoblin_Particle, &PartsDesc))) + { + return E_FAIL; + } + + m_pGoblin_Particle->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle", static_cast(NEXT_LEVEL)); + m_pGoblin_Particle->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder")); + + + + if (FAILED(Add_PartObject("Goblin_Particle2", g_iStaticLevel, &m_pGoblin_Particle2, &PartsDesc))) + { + return E_FAIL; + } + + m_pGoblin_Particle2->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2", static_cast(NEXT_LEVEL)); + m_pGoblin_Particle2->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder")); + + + if (FAILED(Add_PartObject("Goblin_Smoke", g_iStaticLevel, &m_pSmoke, &PartsDesc))) + { + return E_FAIL; + } + + m_pSmoke->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke", static_cast(NEXT_LEVEL)); + m_pSmoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("Spine2")); + + +#pragma endregion + return S_OK; + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 1dedc976b..97ea4331f 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -316,7 +316,7 @@ HRESULT CTroll::Ready_Parts() - /*if (FAILED(Add_PartObject("Troll_Particle", g_iStaticLevel, &m_pTroll_Particle, &PartsDesc))) + if (FAILED(Add_PartObject("Troll_Particle", g_iStaticLevel, &m_pTroll_Particle, &PartsDesc))) { return E_FAIL; } @@ -350,7 +350,7 @@ HRESULT CTroll::Ready_Parts() m_pLeft_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke", static_cast(NEXT_LEVEL)); m_pLeft_Smoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("LeftArm")); -*/ + #pragma endregion return S_OK; } diff --git a/Jusin154_Team3D/Client/Public/Goblin.h b/Jusin154_Team3D/Client/Public/Goblin.h index 6f3cfed34..4cb6d514e 100644 --- a/Jusin154_Team3D/Client/Public/Goblin.h +++ b/Jusin154_Team3D/Client/Public/Goblin.h @@ -40,6 +40,11 @@ class CGoblin final : public CMonster _float2 m_vStunTimer = { 0.f, 4.f }; _uint iIndex; + + class CEffectParts* m_pSmoke = { nullptr }; + class CEffectParts* m_pGoblin_Particle = { nullptr }; + class CEffectParts* m_pGoblin_Particle2 = { nullptr }; + private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override;