You've already forked zumbi-game
remove unreachable condition and translate log message
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user