コード例 #1
0
    //接收消息到消息之后处理
    public override void HandleNotification(INotification notification)
    {
        string        name = notification.Name;
        object        vo   = notification.Body;
        UIManagerView view = ViewComponent as UIManagerView;

        switch (name)
        {
        case NotiConst.UIMANAGER_RETURN:
            view.DoReturn((GlobalDefine.PanelType)vo);
            break;

        case NotiConst.UIMANAGER_CREATE:
            view.DoCreate((GlobalDefine.PanelType)vo);
            break;

        case NotiConst.UIMANAGER_DESTORY:
            view.DoDestroy((GlobalDefine.PanelType)vo);
            break;

        case NotiConst.UIMANAGER_OPEN:
            view.DoOpen((GlobalDefine.PanelType)vo);
            break;
        }
    }
コード例 #2
0
ファイル: SphereMediator.cs プロジェクト: AtheosCode/Tuimoil
    //接收消息到消息之后处理
    public override void HandleNotification(INotification notification)
    {
        string        name = notification.Name;
        object        vo   = notification.Body;
        UIManagerView view = ViewComponent as UIManagerView;

        Debug.Log("SphereMediator 测试" + name + "      " + vo);
        //switch (name) {
        //    case NotiConst.UIMANAGER_RETURN:
        //        view.DoReturn((GlobalDefine.PanelType)vo);
        //        break;
        //    case NotiConst.UIMANAGER_CREATE:
        //        view.DoCreate((GlobalDefine.PanelType)vo);
        //        break;

        //    case NotiConst.UIMANAGER_DESTORY:
        //        view.DoDestroy((GlobalDefine.PanelType)vo);
        //        break;
        //    case NotiConst.UIMANAGER_OPEN:
        //        view.DoOpen((GlobalDefine.PanelType)vo);
        //        break;
        //}
    }
コード例 #3
0
ファイル: UIManager.cs プロジェクト: Falme/NeonBar
 private void Awake()
 {
     uiManagerView = GetComponent <UIManagerView>();
 }
コード例 #4
0
 public void Awake()
 {
     Instance = this;
     InitNodeInfo();
 }