-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInvader.h
51 lines (31 loc) · 975 Bytes
/
Invader.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright Dirtyloop. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Public/InvaderActor.h"
#include "Invader.generated.h"
class UBoxComponent;
UCLASS()
class EARTHDEFENDERCPP_API AInvader : public AInvaderActor
{
GENERATED_BODY()
public:
AInvader();
virtual void MoveCircular();
virtual void Tick(float DeltaTime) override;
FVector CurrentLocation;
float Speed;
FTimerHandle MemberTimerHandle;
protected:
virtual void BeginPlay() override;
float CurrentAngle = 0.0f;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
UStaticMeshComponent* SM_Invader;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
UBoxComponent* Box_Collision;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "RotateAround")
float RotationSpeed;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "RotateAround")
float StartAngle;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "RotateAround")
float Distance = 350.0f;
};