Files
ProjectMD/Assets/Scripts/GameBase/Core.cs
Dal4segno db5db4b106 코드 리팩토링
재사용성 및 확장성을 고려하여 코드 전반을 리팩토링함
2026-01-21 01:45:15 +09:00

22 lines
478 B
C#

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