31 lines
654 B
C++
31 lines
654 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "EnemyCharacter.h"
|
|
#include "EnhancedInputComponent.h"
|
|
|
|
AEnemyCharacter::AEnemyCharacter(const FObjectInitializer& ObjectInitializer)
|
|
: Super(ObjectInitializer)
|
|
{
|
|
}
|
|
|
|
void AEnemyCharacter::BeginPlay()
|
|
{
|
|
// Call the base class
|
|
Super::BeginPlay();
|
|
GetWorldTimerManager().SetTimer(AutoPunch, this, &AEnemyCharacter::StartPunch,
|
|
1.f);
|
|
}
|
|
|
|
void AEnemyCharacter::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
}
|
|
|
|
void AEnemyCharacter::StartPunch()
|
|
{
|
|
Super::StartPunch();
|
|
GetWorldTimerManager().SetTimer(AutoPunch, this, &AEnemyCharacter::StartPunch,
|
|
1.f);
|
|
}
|