using UnityEngine; /// /// Core structure that players must defend. /// Uses HealthComponent for health management. /// [RequireComponent(typeof(HealthComponent))] public class Core : MonoBehaviour { private HealthComponent _health; void Awake() { _health = GetComponent(); } /// /// Get the health component for direct access. /// public HealthComponent Health => _health; }