Advertisement
Raven_Stigald

BatteryPickup.cpp

Feb 4th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #include "BatteryPickup.h"
  4. #include <Runtime/Engine/Classes/Components/StaticMeshComponent.h>
  5.  
  6. //Set default value
  7. ABatteryPickup::ABatteryPickup()
  8. {
  9.     GetMesh()->SetSimulatePhysics(true);
  10. }
  11.  
  12. void ABatteryPickup::WasCollected_Implementation()
  13. {
  14.     // Use the base pickup behavior
  15.     Super::WasCollected_Implementation();
  16.     //Destroy the battery
  17.     Destroy();
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement