コード例 #1
0
    public void GameOver()
    {
        try{
            spawn.CancelInvoke("Spawn");
            spawn.CancelInvoke("ChangeChord");
        }
        catch {
        }
        RectTransform rect = Instantiate(GameOverScreen) as RectTransform;

        rect.SetParent(main, false);
        Text         fin   = rect.FindChild("FinalScore").GetComponent <Text>();
        ScoreManager score = GetComponent <ScoreManager> ();

        fin.text = "Loading Scores";

        StartCoroutine(PostScores("User", score.scoreValue));
        StartCoroutine(GetScores());
    }