示例#1
0
 private void GameOver(bool win)
 {
     Debug.Log("Game Over");
     isGameRunning = false;
     if (win)
     {
         _hudController.Win();
         PlayerPrefs.SetInt("SUCCEED_LEVEL1", 1);
     }
     else
     {
         _hudController.Lose();
     }
 }
示例#2
0
 private void GameOver(bool win)
 {
     if (win)
     {
         isGameRunning = false;
         _powerCell.GetComponent <BoxCollider>().isTrigger = true;
         Debug.Log("win");
     }
     else
     {
         isGameRunning = false;
         _hudController.Lose();
         Debug.Log("false");
     }
 }