public override void Execute(INotification notification)
 {
     Log.Write(GetType() + "/ Execute() "); // 日志
     _userRmpInfo = notification.Body as UserEmployeeInfo;
     if (_userRmpInfo != null)
     {
         // 控制层 消息通知 视图层 (低频率)
         // 初始化 用户列表操作类 窗体
         SendNotification(Proconst.MSG_INIT_USERLIST_MEDIATOR, _userRmpInfo.UserList);
         // 初始化 用户显示操作类 窗体
         SendNotification(Proconst.MSG_INIT_USERFORM_MEDIATOR, _userRmpInfo.UserForm);
     }
 }
Пример #2
0
        // 动态添加脚本组件
        private void AddGameObjectScripts()
        {
            GameObject EmpRoot = GameObject.Find(Proconst.EMP_ROOT);

            userEmpInfo = EmpRoot.AddComponent <UserEmployeeInfo>();
        }