Changes / gameloop almost ready

This commit is contained in:
2023-06-18 15:30:11 +02:00
parent a6ce2a73d0
commit 8906b1a492
31 changed files with 13 additions and 29 deletions

View File

@@ -14,9 +14,9 @@ ABuildingBlock::ABuildingBlock()
}
void ABuildingBlock::DepleteHealth(float Amount) {
Health =- Amount;
if (Health <= 0.f) {
Health = Health - Amount;
if (Health <= 0.0f) {
UE_LOG(LogTemp, Warning, TEXT("Health below 0 - DestroyingBlock"));
DestroyBlock();
}
else {