Exemple #1
0
    void onBtnLoginClick(GameObject gobj)
    {
        string userName = txtUsername.value;
        string password = txtPassword.value;

        //if (string.IsNullOrEmpty(userName))
        //    DialogService.Instance.ShowDialog(new DialogMessage("Thông báo", "Vui lòng nhập thông tin về tài khoản của bạn"));
        //    userName = Application.platform == RuntimePlatform.WindowsPlayer ? "dungnv2" : "dungnv";
        //if (string.IsNullOrEmpty(password))
        //    DialogService.Instance.ShowDialog(new DialogMessage("Thông báo", "Vui lòng nhập mật khẩu truy cập."));
        //    password = Application.platform == RuntimePlatform.WindowsPlayer ? "1234" : "puppet#89";
        presenter.LoginWithUserName(userName, password);
    }