Changes / gameloop almost ready
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user