namespace BingoBrain.Core { public abstract class BaseUnity : SingletonUnity, InterfaceManager where T : BaseUnity { 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(); } } }