public bool SetLoaded(IUIM _mgr, GameObject _go) { State = EWorkerState.Resting; Script = _go.GetComponent <IUI>(); Script.Worker = this; Script?.Loaded(_mgr, _go); return(Script != null); }
void IUI.Loaded(IUIM _iuim, GameObject _root) { Manager = _iuim; CanDestroy = true; gameObject.SetActive(false); OnLoadCompleted(); OnLoad(); }
void IUI.Unload() { OnUnload(); Manager = null; Info = null; }