using UnityEngine; public class Player : Character { public static Player Current; void Awake() { Current = this; } void OnDestroy() { if (Current == this) Current = null; } // Example hook for when a target is set public override void Die() { base.Die(); // add player-specific death logic here } }