//接收消息到消息之后处理 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; } }
//接收消息到消息之后处理 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; //} }
private void Awake() { uiManagerView = GetComponent <UIManagerView>(); }
public void Awake() { Instance = this; InitNodeInfo(); }