revert 6e1260a0dd5e0cd8431778b79ce60de950495640
revert Bind UFUNCTION to OnTargetPerceptionUpdated
This commit is contained in:
		
							parent
							
								
									6e1260a0dd
								
							
						
					
					
						commit
						2f556660ac
					
				| @ -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(); | ||||
|  | ||||
| @ -44,9 +44,6 @@ public: | ||||
| 
 | ||||
| 	void WeaponCooldownHandler(); | ||||
| 
 | ||||
| 	UFUNCTION() | ||||
| 	virtual void OnPerceptionComponentUpdated(); | ||||
| 
 | ||||
| protected: | ||||
| 	virtual void BeginPlay() override; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user