This repository has been archived on 2026-05-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AgrarianGameArchive/Source/AgrarianGame/Variant_Platforming/Animation/AnimNotify_EndDash.cpp
T

22 lines
640 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AnimNotify_EndDash.h"
#include "PlatformingCharacter.h"
#include "Components/SkeletalMeshComponent.h"
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");
}