//-------------------------------------------------------------------------------- // onClickChangeName //-------------------------------------------------------------------------------- public void onClickChangeName() { if (inputUsername != null && inputPassword != null) { if (LoomClient.validateName(inputUsername.text) && LoomClient.validatePassword(inputPassword.text) && inputUsername.text != LoomClient.Account.accountName ) { string[] fields = new string[] { inputUsername.text, inputPassword.text }; TemporaryDisable(buttonChange); LoomClient.ActionChangeAccountName(fields, onCallbackChangeName); } else { FindObjectOfType <LC_UIPanelMessage>().Show(LoomClient.LANG_ERROR); } } else { Debug.LogWarning(LoomClient.LANG_EDITOR_MISSING + this.name); } }