remove unreachable condition and translate log message

This commit is contained in:
2026-05-05 11:13:31 +02:00
parent 2c70174e69
commit 5d5b3c8e9a
+1 -2
View File
@@ -36,7 +36,6 @@ public class ZombieController : MonoBehaviour
private void Update()
{
if (player == null) return;
if (currentHealth == 0) return;
float distance = Vector3.Distance(transform.position, player.position);
@@ -82,7 +81,7 @@ public class ZombieController : MonoBehaviour
if (Time.time - lastAttackTime >= attackCooldown)
{
lastAttackTime = Time.time;
Debug.Log($"{gameObject.name} útočí na hráča za {attackDamage} damage!");
Debug.Log($"{gameObject.name} attacked player by {attackDamage} damage");
// player.GetComponent<PlayerHealth>()?.TakeDamage(attackDamage);
}
}