Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #include "BatteryPickup.h"
- #include <Runtime/Engine/Classes/Components/StaticMeshComponent.h>
- //Set default value
- ABatteryPickup::ABatteryPickup()
- {
- GetMesh()->SetSimulatePhysics(true);
- }
- void ABatteryPickup::WasCollected_Implementation()
- {
- // Use the base pickup behavior
- Super::WasCollected_Implementation();
- //Destroy the battery
- Destroy();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement