// ----------------------------------------------------------------------------------------------------- public void EnterData() { if (alias.text.Trim().Length == 0) //to avoid fill with spaces { obrigaAlias.text = translate.getLocalizedValue("obrigaAlias"); //171011 necessary fill playerAlias //180220 problem to open keyboard on iOS; navigation vertical on inspector #if UNITY_ANDROID || UNITY_IOS // if (! isKeyboardOpen) { // isKeyboardOpen = true; // mobileKeyboard = TouchScreenKeyboard.Open(alias.text, TouchScreenKeyboardType.Default, false, false, false, false, ""); // } // if(mobileKeyboard.done == true) { // alias.text = mobileKeyboard.text; // mobileKeyboard = null; // } else { // alias.text = mobileKeyboard.text; // } #else alias.Select(); alias.ActivateInputField(); #endif } else { //170830 necessary to inform if agree or not in participate of the search if (!(agree.isOn || notAgree.isOn)) { //171011 obrigaAlias.text = "Por favor, informe sua concordância!"; obrigaAlias.text = translate.getLocalizedValue("obrigaTCLE"); } else { PlayerInfo.alias = alias.text; userData.SetActive(false); gameFlowManager.NewGame(PlayerPrefs.GetInt("gameSelected")); //Josi: antes havia esta continuidade no onClick Unity, agora passa para ca para poder reclamar do apelido vazio } } }