-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyTriggerBox.h
More file actions
37 lines (28 loc) · 827 Bytes
/
Copy pathMyTriggerBox.h
File metadata and controls
37 lines (28 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Engine/TriggerBox.h"
#include "GameFramework/Actor.h"
#include "TeleporterSystemCharacter.h"
#include "GameFramework/SpringArmComponent.h"
#include "MyTriggerBox.generated.h"
/**
*
*/
UCLASS()
class TELEPORTERSYSTEM_API AMyTriggerBox : public ATriggerBox
{
GENERATED_BODY()
protected:
virtual void BeginPlay() override;
public:
AMyTriggerBox();
UFUNCTION()
void EnterTeleporter(class AActor* overlappedActor, class AActor* otherActor);
UFUNCTION()
void ExitTeleporter(class AActor* overlappedActor, class AActor* otherActor);
UPROPERTY(EditAnywhere, Category = "Teleporter")
AMyTriggerBox* OtherTeleport;
UPROPERTY()
bool Teleport;
};