Add secondary Interact function in Interactable Component
This commit is contained in:
		
							parent
							
								
									62d6bc8dbd
								
							
						
					
					
						commit
						e3649d4752
					
				@ -23,3 +23,7 @@ void UInteractableComponent::BeginPlay()
 | 
				
			|||||||
void UInteractableComponent::Interact()
 | 
					void UInteractableComponent::Interact()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void UInteractableComponent::Interact(AActor* damagedActor, float damage, const UDamageType* damageType, AController* instigatedBy, AActor* damageCauser)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -21,6 +21,9 @@ protected:
 | 
				
			|||||||
	virtual void BeginPlay() override;
 | 
						virtual void BeginPlay() override;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
	UFUNCTION()
 | 
						
 | 
				
			||||||
	void Interact();
 | 
						void Interact();
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
						void Interact(AActor* damagedActor, float damage, const UDamageType* damageType, AController* instigatedBy, AActor* damageCauser);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user