private IEnumerator ColorStepByStep() { yield return(new WaitForSeconds(0.5f)); for (int i = 0; i < this.steps.Count; i++) { FillAlgorithm fillType = this.paintFill.FillType; if (fillType != FillAlgorithm.Flood) { if (fillType == FillAlgorithm.Chop) { (this.paintFill as ChopFill).FillOnCopy(this.steps[i].point, this.IdToColor(this.steps[i].colorId), this.pixels); } } else { (this.paintFill as FloodFill).FillOnCopy(this.steps[i].point, this.IdToColor(this.steps[i].colorId), this.pixels); } this.drawTex.LoadRawTextureData(this.pixels); this.drawTex.Apply(false); this.colorStepIndex = i; yield return(new WaitForSeconds(0.04f)); } yield return(0); this.colorCoroutine = null; this.IsAnimating = false; PlayTimeEventTracker.AnimWatched(); this.OpenControls(); yield break; }
private void OpenControls() { if (!this.isReplay) { if (GeneralSettings.IsShowRate()) { this.popupManager.OpenRate(); AnalyticsManager.RateShow(); } else if (AdsManager.Instance.HasInterstitial(AdPlacement.Solved)) { AdsManager.Instance.ShowInterstitial(AdPlacement.Solved); } } PlayTimeEventTracker.AnimWatched(); base.StartCoroutine(this.FadeCoroutine(0f, 1f, 0.2f, 0.2f, this.mediaBtn)); base.StartCoroutine(this.FadeCoroutine(0f, 1f, 0.2f, 0.4f, this.exitBtn)); base.StartCoroutine(this.FadeCoroutine(1f, 0f, 0.2f, 0f, this.skipBtn)); }