From 5d5b3c8e9a5e9930309b7ffbc7da2b70ae6f6e31 Mon Sep 17 00:00:00 2001 From: br0kenpixel Date: Tue, 5 May 2026 11:13:31 +0200 Subject: [PATCH] remove unreachable condition and translate log message --- Assets/Scripts/ZombieController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Scripts/ZombieController.cs b/Assets/Scripts/ZombieController.cs index 9777470..d97973e 100644 --- a/Assets/Scripts/ZombieController.cs +++ b/Assets/Scripts/ZombieController.cs @@ -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()?.TakeDamage(attackDamage); } }