Advertisement
Dieton

Tresure.h

Dec 13th, 2023 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | Gaming | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "CoreMinimal.h"
  6. #include "Items/Item.h"
  7. #include "Treasure.generated.h"
  8.  
  9.  
  10.  
  11. UCLASS()
  12. class SLASH_API ATreasure : public AItem
  13. {
  14.     GENERATED_BODY()
  15.  
  16. protected:
  17.     virtual void OnSphereOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult) override;
  18. private:
  19.     UPROPERTY(EditAnywhere, Category = Sounds)
  20.     USoundBase* PickupSound;
  21.  
  22. };
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement