Exemple #1
0
    private void Update()
    {
        //Controling log in button disable
        if (_validateLoginAndPassword())
        {
            _loginButton.Enable();
        }
        else
        {
            _loginButton.Disable();
        }

        //Setting translation
        _loginInputPlaceholder.text    = Translator.GetTranslation("LoginPage.LoginInputPlaceholder");
        _passwordInputPlaceholder.text = Translator.GetTranslation("LoginPage.PasswordInputPlaceholder");
        _loginButton.SetText(Translator.GetTranslation("LoginPage.LoginButtonText"));
        _mainLabel.text = Translator.GetTranslation("LoginPage.MainLabelText");
        _demoButton.SetText(Translator.GetTranslation("LoginPage.DemoButtonText"));
    }