Add secondary Interact function in Interactable Component

This commit is contained in:
Louis Hobbs 2023-06-01 02:24:35 +01:00
parent 62d6bc8dbd
commit e3649d4752
2 changed files with 8 additions and 1 deletions

View File

@ -23,3 +23,7 @@ void UInteractableComponent::BeginPlay()
void UInteractableComponent::Interact()
{
}
void UInteractableComponent::Interact(AActor* damagedActor, float damage, const UDamageType* damageType, AController* instigatedBy, AActor* damageCauser)
{
}

View File

@ -21,6 +21,9 @@ protected:
virtual void BeginPlay() override;
public:
UFUNCTION()
void Interact();
void Interact(AActor* damagedActor, float damage, const UDamageType* damageType, AController* instigatedBy, AActor* damageCauser);
};