using UnityEngine; using UnityAtoms.BaseAtoms; public class UnitHealth : MonoBehaviour { public int Health { get => _health.Value; set => _health.Value = value; } [SerializeField] private IntReference _health; }