| 51 | } |
| 52 | |
| 53 | void AWeapon::BeginPlay() |
| 54 | { |
| 55 | Super::BeginPlay(); |
| 56 | |
| 57 | AreaSphere->SetCollisionEnabled(ECollisionEnabled::QueryAndPhysics); |
| 58 | AreaSphere->SetCollisionResponseToChannel(ECollisionChannel::ECC_Pawn, ECollisionResponse::ECR_Overlap); |
| 59 | AreaSphere->OnComponentBeginOverlap.AddDynamic(this, &AWeapon::OnSphereOverlap); |
| 60 | AreaSphere->OnComponentEndOverlap.AddDynamic(this, &AWeapon::OnSphereEndOverlap); |
| 61 | |
| 62 | if (PickupWidget) |
| 63 | { |
| 64 | PickupWidget->SetVisibility(false); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | void AWeapon::Tick(float DeltaTime) |
| 69 | { |
nothing calls this directly
no outgoing calls
no test coverage detected