From 2f8da66aa492faeca054cb3e142a49012816602b Mon Sep 17 00:00:00 2001 From: Louis Hobbs Date: Thu, 16 Feb 2023 18:28:08 +0000 Subject: [PATCH] Add BeginPlay method to EnemyAIController --- Source/Nakatomi/EnemyAIController.cpp | 5 +++++ Source/Nakatomi/EnemyAIController.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Source/Nakatomi/EnemyAIController.cpp b/Source/Nakatomi/EnemyAIController.cpp index bc0440d..d432c4a 100644 --- a/Source/Nakatomi/EnemyAIController.cpp +++ b/Source/Nakatomi/EnemyAIController.cpp @@ -32,6 +32,11 @@ void AEnemyAIController::OnPossess(APawn* InPawn) //ensure(enemy->GetMovementComponent()->UseAccelerationForPathFollowing()); } +void AEnemyAIController::BeginPlay() +{ + Super::BeginPlay(); +} + void AEnemyAIController::Tick(float DeltaTime) { Super::Tick(DeltaTime); diff --git a/Source/Nakatomi/EnemyAIController.h b/Source/Nakatomi/EnemyAIController.h index ffda70c..4b0e154 100644 --- a/Source/Nakatomi/EnemyAIController.h +++ b/Source/Nakatomi/EnemyAIController.h @@ -33,6 +33,8 @@ public: virtual void OnPossess(APawn* InPawn) override; + virtual void BeginPlay() override; + virtual void Tick(float DeltaTime) override; virtual AEnemyCharacter* GetEnemyCharacter();