KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
DestroyTrigger.h
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Actor.h"
7#include "DestroyTrigger.generated.h"
8
9UCLASS()
10class ONEPIECE_API ADestroyTrigger : public AActor
11{
12 GENERATED_BODY()
13
14public:
15 // Sets default values for this actor's properties
17
18protected:
19 // Called when the game starts or when spawned
20 virtual void BeginPlay() override;
21
22public:
23 // Called every frame
24 virtual void Tick(float DeltaTime) override;
25
26public:
27 UPROPERTY(EditAnywhere, BlueprintReadWrite)
28 class UBoxComponent* Trigger;
29
30 UFUNCTION()
31 void BeginOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
32
33 UFUNCTION(Server, Reliable)
34 void Server_Destroy(AActor* ActorToDestroy);
35};