Unreal Engine 4/C++
2022. 5. 30.
<Unreal C++> 61 - Action RPG (Dead)
필요한 개념 * 우선 CStateComponent에 Dead 상태 추가 UENUM(BlueprintType) enum class EStateType : uint8 { Idle, Roll, Backstep, Equip, Action, Hitted, Dead, Max }; UFUNCTION(BlueprintPure) FORCEINLINE bool IsDeadMode() { return Type == EStateType::Dead; } void UCStateComponent::SetDeadMode() { ChangeType(EStateType::Dead); } * CEnemy.cpp의 안에 추가 // Hitted() 함수안에 추가 if (Status->GetHealth() SetDeadMode(); retur..