Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (Application.loadedLevel == 1)
        {
            fTime             = GR.getPlayTime();
            moveDistance.text = "Time : " + string.Format("{0:f1}", GR.getPlayTime()).ToString() + "s";
            coin.text         = "Bullet : " + PlayerControl.bulletCount.ToString();
            scoreTxt.text     = "Score : " + GetScore().ToString();
        }

        if (Application.loadedLevel == 2)
        {
            tScore.text = dataSave.iScore.ToString();
            tTime.text  = string.Format("{0:f1}", dataSave.fTime).ToString();
            float ts = (dataSave.iScore * dataSave.fTime);
            totalScore.text = string.Format("{0:f1}", ts).ToString();
        }
    }