Files
Fishing2/Assets/Scripts/Model/Common/Services/MonoService.cs
2025-08-29 09:11:08 +08:00

24 lines
433 B
C#

using NBC;
using UnityEngine;
namespace NBF
{
public abstract class MonoService : MonoBehaviour
{
}
public abstract class MonoService<T> : MonoService where T : MonoService
{
public static T Instance { get; private set; }
protected void Awake()
{
Instance = this as T;
OnAwake();
}
protected virtual void OnAwake()
{
}
}
}