///-------------------------------------------------------------------- /// <summary> /// 导入本窗口的子控件到代码中 /// </summary> ///-------------------------------------------------------------------- public virtual bool ReloadUI( ) { m_hPanel = transform.GetComponent <UIPanel>(); UISpriteList = transform.GetComponentsInChildren <UISprite>( ); UITextureList = transform.GetComponentsInChildren <UITexture>(); // 挂CLuaBehaviour 组件,做注册事件使用 transform.gameObject.AddComponent <CLuaBehaviour>(); GameUIManager PanelMgr = LuaFramework.LuaHelper.GetPanelManager(); PanelMgr.AttackUIRoot(this); CallMethod("ReloadUI", transform.gameObject); return(true); }