22 lines
495 B
C#
22 lines
495 B
C#
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<PlayerUnityComponent>();
|
|
Player = UnityComponent.Player;
|
|
OnAwake();
|
|
}
|
|
|
|
protected virtual void OnAwake()
|
|
{
|
|
}
|
|
}
|
|
} |