private void OnGetAppModule(object content) { GameObject go = GameObject.Instantiate((GameObject)content); _module = go.AddComponent(_classType) as AppModule; _module.SetSiblingIndex(_siblingIndex); _module.Show(_showData); }
public void Show(object obj = null) { _showData = obj; if (_module != null) { _module.Show(obj); } else { _path = AssetPathUtil.GetUI(_name); ResourceManager.GetResource(_path, OnGetAppModule); } }