// Update is called once per frame void FixedUpdate() { timeCount -= Time.deltaTime / (float)1.5f; if (timeCount <= 30f && Inc1 == true) { Inc1 = false; tempCal.inc1(); } else if (timeCount <= 10f && Inc2 == true) { Inc2 = false; tempCal.inc2(); } if (timeCount <= 0f) { SceneManager.LoadScene("GameClear"); } timetext.text = "残り時間:" + ((int)(timeCount)).ToString(); }