コード例 #1
0
 // Update is called once per frame
 private void FixedUpdate()
 {
     if (RunGame && !pause)
     {
         initializeController.Update();
     }
     else if (timer <= 0f && !RunGame)
     {
         Cursor.lockState = CursorLockMode.None;
         Cursor.visible   = true;
         timerText.text   = "00:00";
         endGame.Find("PlayerScore").GetComponent <Text>().text = References.playerController.Score.ToString();
         endGame.gameObject.SetActive(true);
     }
 }
コード例 #2
0
 // Update is called once per frame
 void Update()
 {
     initializeController.Update();
 }