2024-04-22 09:01:30 -07:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "GasaCommon.h"
|
2024-04-22 22:10:02 -07:00
|
|
|
|
#include "Actors/GasaActor.h"
|
|
|
|
|
#include "GameFramework/Actor.h"
|
2024-04-22 09:01:30 -07:00
|
|
|
|
|
|
|
|
|
#include "GasaEffectActorDemo.generated.h"
|
|
|
|
|
|
|
|
|
|
// Old demonstration code used before part 37.
|
|
|
|
|
UCLASS()
|
2024-04-22 22:10:02 -07:00
|
|
|
|
class GASA_API AGasaEffectActorDemo : public AGasaActor
|
2024-04-22 09:01:30 -07:00
|
|
|
|
{
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
UPROPERTY(VisibleAnywhere)
|
|
|
|
|
TObjectPtr<UStaticMeshComponent> Mesh;
|
|
|
|
|
UPROPERTY(VisibleAnywhere)
|
|
|
|
|
TObjectPtr<USphereComponent> Sphere;
|
|
|
|
|
|
|
|
|
|
AGasaEffectActorDemo();
|
|
|
|
|
|
|
|
|
|
UFUNCTION()
|
|
|
|
|
void OnOverlapBegin(UPrimitiveComponent* OverlappedComponent
|
|
|
|
|
, AActor* OtherActor
|
|
|
|
|
, UPrimitiveComponent* OtherComp
|
|
|
|
|
, int32 OtherBodyIndex
|
|
|
|
|
, bool bFromSweep
|
|
|
|
|
, FHitResult const& SweepResult);
|
|
|
|
|
|
|
|
|
|
UFUNCTION()
|
|
|
|
|
void OnOverlapEnd(UPrimitiveComponent* OverlappedComponent
|
|
|
|
|
, AActor* OtherActor
|
|
|
|
|
, UPrimitiveComponent* OtherComp
|
|
|
|
|
, int32 OtherBodyIndex);
|
|
|
|
|
|
|
|
|
|
#pragma region Actor
|
|
|
|
|
void BeginPlay() override;
|
|
|
|
|
|
|
|
|
|
void PostInitializeComponents() override;
|
|
|
|
|
#pragma endregion Actor
|
|
|
|
|
};
|