using UnityEngine; namespace Unheimlich.Gameplay.Player { /// /// Singleton player reference accessible globally throughout the game. /// public class Player : MonoBehaviour { public static Player Instance { get; private set; } private void Awake() { if (Instance != null && Instance != this) { Destroy(this); return; } Instance = this; } } }