Variants / Chaining / Icons / ...

This commit is contained in:
2023-07-22 17:01:54 +02:00
parent 77bb47aeb9
commit 224154e100
110 changed files with 97 additions and 27 deletions

View File

@@ -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();
};