From 06a72c107f48693740f4cbf311e050099d62c576 Mon Sep 17 00:00:00 2001 From: br0kenpixel Date: Mon, 4 May 2026 13:16:36 +0200 Subject: [PATCH] adjust zombie properties --- Assets/Scripts/ZombieController.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/Scripts/ZombieController.cs b/Assets/Scripts/ZombieController.cs index 342b0c1..e4ab762 100644 --- a/Assets/Scripts/ZombieController.cs +++ b/Assets/Scripts/ZombieController.cs @@ -3,18 +3,18 @@ using UnityEngine; public class ZombieController : MonoBehaviour { [Header("Health")] - [SerializeField] private float maxHealth = 100f; + private float maxHealth = 50; private float currentHealth; [Header("Movement")] - [SerializeField] private float walkSpeed = 2f; - [SerializeField] private float runSpeed = 4f; - [SerializeField] private float runDistance = 5f; // od kedy začne bežať - [SerializeField] private float attackDistance = 1.5f; // od kedy útočí + private float walkSpeed = 1f; + private float runSpeed = 2f; + private float runDistance = 5f; // od kedy začne bežať + private float attackDistance = 1.5f; // od kedy útočí [Header("Attack")] - [SerializeField] private float attackDamage = 10f; - [SerializeField] private float attackCooldown = 1f; + private float attackDamage = 10f; + private float attackCooldown = 1f; private float lastAttackTime; private Transform player;