UISubManager

- allChild: Dictionary<string, Transform>

- Awake():void

- Regist():void

- InitializeChildren(): void

//对其子控件编写逻辑函数后向上提供接口

UIBehaviour

- Awake():void

- Regist():void

//各种事件逻辑函数为其上层提供接口

UIManager

+ Instance: UIManager

- allWidget: Dictionary<string, Dictionary<string, GameObject>>

+ RegistGameObject(string,string,GameObject):void

+ UnRegistGameObject(string,string):void

+ GetGameObject(string,string):GameObject

//......###

UIBase

- allChildren:Transform[]

- AddComponent(): void

+ //1.对下层的接口封装后

     提供各种对外的事件绑定函数

instance

regist

Addcomponent

Addcomponent

regist

1.对外的唯一接口类,以panel为单位 需要时继承即可

2.以panel为单位 对需要被操控的子对象添加UIbehaviour或UISubmanager

Widget

Widget

Wifget

UI模块封装

UI模块封装

2020-02-15 13:57:20 0 23
这里是评论

相关推荐