public void RestartGame() { GameInfo.gameCount++; resultPopup.SetActive(false); timer.GetComponent <UISprite>().fillAmount = 1f; timer.flowedTime = 0f; timer.isStarted = false; timer.isGameOver = false; timer.deltaAmount = 0.0022f - (timer.damping * 0.00001f); timer.harderTime = 4f; spinner.isStarted = false; tabLabel.SetActive(true); tabLabel.GetComponent <TabToStart>().Init(); score.Init(); score.ResetBonus(); fever.Init(); combo.Fail(); for (int i = 0; i < 10; i++) { Destroy(leftPlanets[i]); Destroy(rightPlanets[i]); } Init(); coinAnimation.OnPlayAnimation(); if (GameInfo.gameCount % 5 == 0 && User.Instance.Exp > 50000) { AdPopupChecker(); } }
private void ResultPopup_popupClosed() { gameTime = 30.0f; User.Instance.Coin = User.Instance.Coin + ((ulong)(User.Instance.Score * 2)); coinUI.SetCoinLabel(User.Instance.Coin); SetScoreLabel(); User.Instance.Score = 0; coinAnimation.OnPlayAnimation(); clickIcon.SetActive(true); fidgetSpinner.InitPosition(); timeLabel.text = "30"; nativeAd.AdDestory(); }
private void ResultPopup_popupClosed() { gameTime = 20.0f; coinDelay = fidgetSpinner.CoinDelay; User.Instance.Coin = User.Instance.Coin + ((ulong)(User.Instance.Score * 2)); coinUI.SetCoinLabel(User.Instance.Coin); SetScoreLabel(); User.Instance.Score = 0; coinAnimation.OnPlayAnimation(); moveHandIcon.AnimationOn(); fidgetSpinner.InitPosition(); timeLabel.text = "20"; highSpeed = 0.0f; speedUpCount = 0; nativeAd.AdDestory(); }