Initial commit
This commit is contained in:
17
Source/Promether/AnimNotify/AN_Skill4.cpp
Normal file
17
Source/Promether/AnimNotify/AN_Skill4.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
|
||||
#include "AN_Skill4.h"
|
||||
|
||||
#include "../PlayerGeneric/DefaultPlayerCharacter.h"
|
||||
|
||||
void UAN_Skill4::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, const FAnimNotifyEventReference& EventReference)
|
||||
{
|
||||
if (ADefaultPlayerCharacter* MyCharacter = MeshComp->GetOwner<ADefaultPlayerCharacter>())
|
||||
{
|
||||
if (AController* MyController = MyCharacter->GetController())
|
||||
{
|
||||
MyCharacter->Skill4();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user