You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
awesome_game/Source/TurnBasedTutorial/BattleMode/Trooper/HealthBar.h

29 lines
592 B

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Trooper.h"
#include "Blueprint/UserWidget.h"
#include "HealthBar.generated.h"
/**
*
*/
UCLASS(Abstract)
class TURNBASEDTUTORIAL_API UHealthBar : public UUserWidget {
GENERATED_BODY()
2 years ago
public:
void SetOwnerTrooper(ATrooper *Trooper);
2 years ago
protected:
TWeakObjectPtr<ATrooper> OwnerTrooper;
2 years ago
UPROPERTY(meta=(BindWidget))
class UProgressBar *HealthBar;
2 years ago
virtual void
NativeTick(const FGeometry &MyGeometry, float InDeltaTime) override;
};