示例#1
0
    private void assignUnityElementsToFields()
    {
        var unityInpFields  = ElementLocator.getCollectionFromCanvasINPUT(gameObject);
        var unityTextAlerts = ElementLocator.getCollectionFromCanvasTEXT(gameObject);
        var unityButtons    = ElementLocator.getCollectionFromCanvasBUTTON(gameObject);

        playername = ElementLocator.getElementForFieldINPUT(unityInpFields, "PlayerLogin_PlayernameInputField");

        playernameAlert      = ElementLocator.getElementForTEXT(unityTextAlerts, "PlayerLogin_PlayernameAlert");
        playernameAlert.text = "";
        ok     = ElementLocator.getElementForBUTTON(unityButtons, "PlayerLogin_SubmitButton");
        cancel = ElementLocator.getElementForBUTTON(unityButtons, "PlayerLogin_BackButton");
    }
示例#2
0
    private void assignUnityElementsToFields()
    {
        var unityInpFields  = ElementLocator.getCollectionFromCanvasINPUT(gameObject);
        var unityTextAlerts = ElementLocator.getCollectionFromCanvasTEXT(gameObject);
        var unityButtons    = ElementLocator.getCollectionFromCanvasBUTTON(gameObject);

        username           = ElementLocator.getElementForFieldINPUT(unityInpFields, "Login_UsernameInputField");
        password           = ElementLocator.getElementForFieldINPUT(unityInpFields, "Login_PasswordInputField");
        password.inputType = InputField.InputType.Password;

        credentialsInvalidAlert      = ElementLocator.getElementForTEXT(unityTextAlerts, "Login_CredentialsInvalidAlert");
        credentialsInvalidAlert.text = "";

        ok       = ElementLocator.getElementForBUTTON(unityButtons, "Login_LoginButton");
        register = ElementLocator.getElementForBUTTON(unityButtons, "Login_RegisterButton");
    }
示例#3
0
    private void assignUnityElementsToFields()
    {
        var unityInpFields  = ElementLocator.getCollectionFromCanvasINPUT(gameObject);
        var unityTextAlerts = ElementLocator.getCollectionFromCanvasTEXT(gameObject);
        var unityButtons    = ElementLocator.getCollectionFromCanvasBUTTON(gameObject);

        username = ElementLocator.getElementForFieldINPUT(unityInpFields, "Register_UsernameInputField");
        password = ElementLocator.getElementForFieldINPUT(unityInpFields, "Register_PasswordInputField");
        //password.inputType = InputField.InputType.Password;
        passwordRe = ElementLocator.getElementForFieldINPUT(unityInpFields, "Register_PasswordReenterInputField");
        //passwordRe.inputType = InputField.InputType.Password;

        usernameAlert        = ElementLocator.getElementForTEXT(unityTextAlerts, "Register_UsernameAlert");
        usernameAlert.text   = "";
        passwordAlert        = ElementLocator.getElementForTEXT(unityTextAlerts, "Register_PasswordAlert");
        passwordAlert.text   = "";
        passwordReAlert      = ElementLocator.getElementForTEXT(unityTextAlerts, "Register_PasswordReenterAlert");
        passwordReAlert.text = "";

        ok         = ElementLocator.getElementForBUTTON(unityButtons, "Register_RegisterButton");
        ok.enabled = false;
        cancel     = ElementLocator.getElementForBUTTON(unityButtons, "Register_BackButton");
    }