29 lines
622 B
C++
29 lines
622 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "EnemyCharacter.h"
|
|
|
|
AEnemyCharacter::AEnemyCharacter(const FObjectInitializer& ObjectInitializer)
|
|
: Super(ObjectInitializer)
|
|
{
|
|
}
|
|
|
|
void AEnemyCharacter::BeginPlay()
|
|
{
|
|
/*GetWorldTimerManager().SetTimer(AutoPunch, this, &AEnemyCharacter::StartPunch,
|
|
1.f);*/
|
|
}
|
|
|
|
void AEnemyCharacter::Tick(float DeltaTime)
|
|
{
|
|
}
|
|
|
|
void AEnemyCharacter::StartPunch()
|
|
{
|
|
if (CanAttack)
|
|
UE_LOG(LogTemp, Warning, TEXT("Enemy StartPunch()"));
|
|
Super::StartPunch();
|
|
GetWorldTimerManager().SetTimer(AutoPunch, this, &AEnemyCharacter::StartPunch,
|
|
1.f);
|
|
}
|