示例#1
0
 private void EndGame(bool clearFlg)
 {
     sounds[0].Stop();
     StopAllCoroutines();
     _Right.OffRight();
     _Left.OffLeft();
     if (clearFlg)
     {
         clearFlag = true;
         sounds[1].PlayOneShot(clips[0]);
         //mUi.ShowResultText("GAME CLEAR!");
         _GameClear.SetActive(true);
         _Gems.SetActive(true);
         ShowController = _Avatar.StartWithControllers;
         ShowController = true;
         _Avatar.ShowLeftController(ShowController);
         _Avatar.ShowRightController(ShowController);
     }
     else
     {
         clearFlag = false;
         //mUi.ShowResultText("GAME OVER");
         _GameOver.SetActive(true);
         ShowController = _Avatar.StartWithControllers;
         ShowController = true;
         _Avatar.ShowLeftController(ShowController);
         _Avatar.ShowRightController(ShowController);
     }
     mState = STATE.RESULT;
 }