mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 19:34:47 +00:00
23 lines
363 B
C#
23 lines
363 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace JNGame.Runtime.System
|
|
{
|
|
public abstract class SystemBase
|
|
{
|
|
|
|
protected bool isStart;
|
|
|
|
public virtual Task OnInit()
|
|
{
|
|
isStart = true;
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public virtual void OnClose()
|
|
{
|
|
isStart = false;
|
|
}
|
|
|
|
}
|
|
}
|