📅  最后修改于: 2022-03-11 14:44:56.579000             🧑  作者: Mango
AUnrealCPPCharacter::AUnrealCPPCharacter()
{
...
// declare overlap events
TriggerCapsule->OnComponentBeginOverlap.AddDynamic(this, &AUnrealCPPCharacter::OnOverlapBegin);
TriggerCapsule->OnComponentEndOverlap.AddDynamic(this, &AUnrealCPPCharacter::OnOverlapEnd);
}