From 2f556660acc1567247927a15014463ca1b24f38d Mon Sep 17 00:00:00 2001 From: baz Date: Sun, 3 Sep 2023 23:31:34 +0200 Subject: [PATCH] revert 6e1260a0dd5e0cd8431778b79ce60de950495640 revert Bind UFUNCTION to OnTargetPerceptionUpdated --- Source/Nakatomi/EnemyCharacter.cpp | 8 -------- Source/Nakatomi/EnemyCharacter.h | 3 --- 2 files changed, 11 deletions(-) diff --git a/Source/Nakatomi/EnemyCharacter.cpp b/Source/Nakatomi/EnemyCharacter.cpp index e0343fe..e849be4 100644 --- a/Source/Nakatomi/EnemyCharacter.cpp +++ b/Source/Nakatomi/EnemyCharacter.cpp @@ -26,10 +26,6 @@ AEnemyCharacter::AEnemyCharacter() GetHealthComponent()->SetMaxHealth(100.0f); this->Tags.Add(FName("Enemy")); - - FScriptDelegate Delegate; - Delegate.BindUFunction(this, "OnPerceptionComponentUpdated"); - PerceptionComponent->OnTargetPerceptionUpdated.Add(Delegate); } UBehaviorTree* AEnemyCharacter::GetBehaviourTree() @@ -68,10 +64,6 @@ void AEnemyCharacter::WeaponCooldownHandler() } } -void AEnemyCharacter::OnPerceptionComponentUpdated() -{ -} - void AEnemyCharacter::BeginPlay() { Super::BeginPlay(); diff --git a/Source/Nakatomi/EnemyCharacter.h b/Source/Nakatomi/EnemyCharacter.h index 42ea36a..3f50307 100644 --- a/Source/Nakatomi/EnemyCharacter.h +++ b/Source/Nakatomi/EnemyCharacter.h @@ -44,9 +44,6 @@ public: void WeaponCooldownHandler(); - UFUNCTION() - virtual void OnPerceptionComponentUpdated(); - protected: virtual void BeginPlay() override;