using UnityEngine; public class MutantHealth : MonoBehaviour { public float maxHealth = 50f; private float currentHealth; void Start() { currentHealth = maxHealth; } public void TakeDamage(float damage) { currentHealth -= damage; Debug.Log("Мутант получил урон! Осталось: " + currentHealth); if (currentHealth <= 0) { Debug.Log("МУТАНТ УМЕР!"); Destroy(gameObject); // Уничтожаем модельку мутанта } } }