Exemple #1
0
    /// <summary>
    /// Log出力用メソッド
    /// 入力値を取得してLogに出力し初期化
    /// </summary>
    public void InputName()
    {
        inputValue = inputField.text;

        if (string.IsNullOrEmpty(inputValue))
        {
            // 警告を出して再度入力させる(保存しない)
            alertText.text = ("※1文字以上入力してください");
            alertText.GetComponent <Text>().enabled = true;
        }
        else
        {
            //alertText.text = ("Thankyou for playing " + inputValue + " !!");
            //alertText.GetComponent<Text>().enabled = true;

            // ここに保存処理
            SaveClass.SaveUserName(inputValue);
        }

        // Debug.Log(inputValue);
    }