43 lines
961 B
C#
43 lines
961 B
C#
|
|
namespace BingoBrain.Core
|
||
|
|
{
|
||
|
|
public abstract class BaseUnity<T> : SingletonUnity<T>, InterfaceManager
|
||
|
|
where T : BaseUnity<T>
|
||
|
|
{
|
||
|
|
public bool IsInit { get; private set; }
|
||
|
|
public bool IsStartUp { get; private set; }
|
||
|
|
public bool IsDispose { get; private set; }
|
||
|
|
|
||
|
|
protected override string ParentRootName
|
||
|
|
{
|
||
|
|
get { return OCConst.MonoManagerGoName; }
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void New()
|
||
|
|
{
|
||
|
|
base.New();
|
||
|
|
IsDispose = false;
|
||
|
|
}
|
||
|
|
|
||
|
|
public virtual void Init()
|
||
|
|
{
|
||
|
|
IsInit = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public virtual void StartUp()
|
||
|
|
{
|
||
|
|
IsStartUp = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public virtual void DisposeBefore()
|
||
|
|
{
|
||
|
|
IsDispose = true;
|
||
|
|
IsInit = false;
|
||
|
|
IsStartUp = false;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void OnDestroy()
|
||
|
|
{
|
||
|
|
base.OnDestroy();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|