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; } }
public void InitLoginMediator(LoginUIForm uIForm) { uIForm.btnLogin.onClick.AddListener(OnClick_Login); uIForm.btnExit.onClick.AddListener(OnClick_Exit); }