Variants / Chaining / Icons / ...
This commit is contained in:
@@ -28,6 +28,12 @@ public:
|
||||
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
|
||||
int32 ThreeStarTarget = 60;
|
||||
|
||||
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
|
||||
float GameTime = 0.f;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
bool CountTime = false;
|
||||
|
||||
protected:
|
||||
// Called when the game starts or when spawned
|
||||
virtual void BeginPlay() override;
|
||||
@@ -36,4 +42,13 @@ public:
|
||||
// Called every frame
|
||||
virtual void Tick(float DeltaTime) override;
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void StartGame();
|
||||
|
||||
// Stop counting and return elapsed game time
|
||||
UFUNCTION(BlueprintCallable)
|
||||
float StopGame();
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
int32 GetAwardStars();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user