Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        RankingManager.LoadRanking();

        for (int i = 0; i < 3; i++)
        {
            rankText[i].text = RankingManager.GetScore(i).ToString();
        }

        AudioManager.Play(BGMType.Menu);
    }
Beispiel #2
0
    IEnumerator ResultAnim()
    {
        isPlayGame      = false;
        player.canInput = false;

        //スコアの計算
        score = CalcScore();

        yield return(new WaitForSeconds(2));

        //リザルトを表示
        resultPanel.gameObject.SetActive(true);

        if (player.isDeath)
        {
            AudioManager.Play(SEType.Game_Over);
        }
        else
        {
            AudioManager.Play(SEType.Clear_Goal);
        }



        //順位発表
        RankingManager.LoadRanking();
        RankingManager.SetRankData(score);
        RankingManager.SaveRanking();

        //スコアをアニメーション
        yield return(StartCoroutine("ScoreCount", 5f));       //早さ

        var rank = RankingManager.GetRank(score);

        if (rank < 3)
        {
            rankImage.enabled = true;
            rankImage.sprite  = rankSprList[rank];
        }
    }
Beispiel #3
0
 public void ResetRanking()
 {
     ranking = RankingManager.LoadRanking();
     writeRanking();
 }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     ranking = RankingManager.LoadRanking();
     writeRanking();
 }