using UnityEngine; namespace NBF { public abstract class PlayerMonoBehaviour : MonoBehaviour { public Player Player { get; private set; } public PlayerUnityComponent UnityComponent { get; private set; } protected void Awake() { UnityComponent = GetComponentInParent(); Player = UnityComponent.Player; OnAwake(); } protected virtual void OnAwake() { } } }