示例#1
0
    public override void HandleNotification(INotification notification)
    {
        switch (notification.Name)
        {
        case GlobalSetting.Msg_InitLoginMediator:
            LoginUIForm loginUIForm = notification.Body as LoginUIForm;
            if (loginUIForm)
            {
                InitLoginMediator(loginUIForm);
            }
            break;

        default:
            break;
        }
    }
示例#2
0
 public void InitLoginMediator(LoginUIForm uIForm)
 {
     uIForm.btnLogin.onClick.AddListener(OnClick_Login);
     uIForm.btnExit.onClick.AddListener(OnClick_Exit);
 }