public void onClick()
    {
        this.errorText.text = "";
        string name = characterUI.getName().text;

        if (name.Length >= 15 || name.Length < 2)
        {
            this.errorText.text = "Name must be between 2 and 15 characters";
            return;
        }
        CreateCharacterButton[] buttons = characterUI.getCheckedButtons();
        Debug.Log("reference: " + characterUI + " : " + buttons + " : " + name);
        characterUI.getLogin().onCharacterCreated(buttons, name);
    }
Esempio n. 2
0
 public void onGoBack()
 {
     characterUI.getLogin().camera.panTo(new Vector3(12, 1.5f, 33f), Quaternion.Euler(0, -50, 0), 2f, 3f);
     characterUI.slideOut();
 }