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;