Exemple #1
0
 void Start()
 {
     Stage1TimeManager.ResetTime();
     Stage2TimeManager.ResetTime();
     Stage3TimeManager.ResetTime();
     //カーソル表示・カーソルを画面内にロック
     Cursor.visible   = true;
     Cursor.lockState = CursorLockMode.Confined;
 }
Exemple #2
0
    public GameObject finishUI; // Finishオブジェクトの変数



    // Start is called before the first frame update
    void Start()
    {
        ScoreTime = 0;
        int t1 = Stage1TimeManager.GetTime();
        int t2 = Stage2TimeManager.GetTime();
        int t3 = Stage3TimeManager.GetTime();

        ScoreTime = t1 + t2 + t3;

        if (PlayerPrefs.HasKey("ScoreTime"))
        {
            bestScore = PlayerPrefs.GetInt("ScoreTime");
        }
        else
        {
            bestScore = 9999;
        }
    }