| // Copyright Epic Games, Inc. All Rights Reserved. | |
| void UAnimNotify_EndDash::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, const FAnimNotifyEventReference& EventReference) | |
| { | |
| // cast the owner to the attacker interface | |
| if (APlatformingCharacter* PlatformingCharacter = Cast<APlatformingCharacter>(MeshComp->GetOwner())) | |
| { | |
| // tell the actor to end the dash | |
| PlatformingCharacter->EndDash(); | |
| } | |
| } | |
| FString UAnimNotify_EndDash::GetNotifyName_Implementation() const | |
| { | |
| return FString("End Dash"); | |
| } | |