Change access level for IncrementHealth
This commit is contained in:
parent
09e71d2a71
commit
2d11a5c5bc
@ -28,6 +28,7 @@ struct FDamageInfo
|
|||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnDamageDelegate, FDamageInfo, damageInfo);
|
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnDamageDelegate, FDamageInfo, damageInfo);
|
||||||
|
|
||||||
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnDeathDelegate, FDamageInfo, damageInfo);
|
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnDeathDelegate, FDamageInfo, damageInfo);
|
||||||
|
|
||||||
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
|
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
|
||||||
@ -59,9 +60,6 @@ public:
|
|||||||
AController* instigatedBy,
|
AController* instigatedBy,
|
||||||
AActor* damageCauser);
|
AActor* damageCauser);
|
||||||
|
|
||||||
UFUNCTION()
|
|
||||||
void IncrementHealth(float value);
|
|
||||||
|
|
||||||
UFUNCTION()
|
UFUNCTION()
|
||||||
float GetMaxHealth();
|
float GetMaxHealth();
|
||||||
|
|
||||||
@ -95,4 +93,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
// Called when the game starts
|
// Called when the game starts
|
||||||
virtual void BeginPlay() override;
|
virtual void BeginPlay() override;
|
||||||
|
|
||||||
|
UFUNCTION()
|
||||||
|
void IncrementHealth(float value);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user