コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     playerLives = playerController.GetLives();
     if (playerLives == 0)
     {
         Time.timeScale = 0.2f;
         sceneSwitcher.LoadGameOver();
     }
 }