作者:vin129 邮箱:515019721@qq.com

QMgrBehaviour

继承关系

继承自: QMonoBehaviour

实现接口:IManager

描述

UIKit 中创建Manager脚本的基类

继承自QMonoBehaviour,提供了一套事件系统的管理模式

私有属性

mEventSystem独自的事件系统

公共属性

ManagerId独自的ManagerId
Manager返回IManager类型自身

公共方法

RegisterEvent向自身QEventSystem注册事件
UnRegistEvent向自身QEventSystem注销事件
SendMsg根据QMsgManagerID 执行消息或转发至 QMsgCenter
SendEventIConvertible 包装成 QMsg类型并执行 SendMsg

私有方法

ProcessMsg执行消息
OnBeforeDestroy回收 mEventSystem