コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     if (nameInput.text.Length == 3 && !postedScore && GameState.Instance.CanSubmitHighScore)
     {
         postedScore                = true;
         nameInput.readOnly         = true;
         nameInput.customCaretColor = true;
         nameInput.caretColor       = new Color(1f, 1f, 1f, 0f);
         StartCoroutine(highScoreController.PostScores(nameInput.text.ToUpper(), GameState.Instance.PlayerOneScore));
     }
 }
コード例 #2
0
    public void PostPlayerScore(
        string name,
        int score,
        float alive)
    {
        //Debug.Log("GameInformation:PostPlayerScore() - name = " + name + "; score = " + score);

        if (highScoreController != null)
        {
            object[] parms = new object[2] {
                name, score
            };

            //StartCoroutine("PostScores", parms);
            StartCoroutine(highScoreController.PostScores(name, score, alive));
        }
        else
        {
            Debug.Log("GameInformation:PostScore() - highScoreController == null");
        }
    }