Files
ChildHood/Source/ChildHood/Variant_Combat/Animation/AnimNotify_CheckCombo.cpp
T
DESKTOP-2K5TJI4\admin 05b1e1bd95 config: 初始化UE5项目文件与C++源码
- ChildHood.uproject + Config/ 引擎配置
- Source/ 含第三人称模板、战斗/平台/横版变体
- .vsconfig Visual Studio依赖配置
2026-06-01 18:26:28 +08:00

22 lines
648 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AnimNotify_CheckCombo.h"
#include "CombatAttacker.h"
#include "Components/SkeletalMeshComponent.h"
void UAnimNotify_CheckCombo::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, const FAnimNotifyEventReference& EventReference)
{
// cast the owner to the attacker interface
if (ICombatAttacker* AttackerInterface = Cast<ICombatAttacker>(MeshComp->GetOwner()))
{
// tell the actor to check for combo string
AttackerInterface->CheckCombo();
}
}
FString UAnimNotify_CheckCombo::GetNotifyName_Implementation() const
{
return FString("Check Combo String");
}