Пример #1
0
        //--------------------------------------------------------------------------------
        // onClickDeleteAccount
        //--------------------------------------------------------------------------------
        public void onClickDeleteAccount()
        {
            if (inputUsername != null &&
                inputPassword != null)
            {
                if (LoomClient.validateName(inputUsername.text) &&
                    LoomClient.validatePassword(inputPassword.text)
                    )
                {
                    string[] fields = new string[] { inputUsername.text, inputPassword.text };

                    TemporaryDisable(buttonDelete);

                    LoomClient.ActionDeleteAccount(fields, onCallbackDeleteAccount);
                }
            }
            else
            {
                Debug.LogWarning(LoomClient.LANG_EDITOR_MISSING + this.name);
            }
        }