public void ShowlastChanceMenu() { if (lastChanceMenu.activeSelf) { lastChanceMenu.SetActive(false); return; } if ((AdsController.CheckAddVideo(AdsController.rewVideo) && AdsController.CheckAddVideo(AdsController.video)) || adsController.RemoveAds) { if (adsController.RemoveAds) { _lastChanceTextTip.text = _noAdsText; lastChanceMenu.SetActive(true); } else { _lastChanceTextTip.text = _adsText; lastChanceMenu.SetActive(true); } } else { snake.ChangeGameState(false); } }