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); } }