public void StartGame() { if (Gameboard.pictureData == null) { if (this.Error != null) { this.Error(Gameboard.LoadError.Unknown); } Gameboard.pictureData = null; return; } this.currentGUID = AnalyticsUtils.GenerateGUID(); if (this.Create(Gameboard.pictureData)) { Gameboard.LaunchCount++; if (this.Loaded != null) { this.Loaded(); } } if (Gameboard.StartAnalyticEvent != null) { Gameboard.StartEventType type = Gameboard.StartAnalyticEvent.type; if (type != Gameboard.StartEventType.New) { if (type != Gameboard.StartEventType.Restart) { if (type == Gameboard.StartEventType.Continue) { AnalyticsManager.ContinuePic(Gameboard.StartAnalyticEvent.id, Gameboard.StartAnalyticEvent.progress, Gameboard.StartAnalyticEvent.screenFrom, this.paintFill.TexWidth, Gameboard.pictureData.FillType); } } else { AnalyticsManager.RestartPic(Gameboard.StartAnalyticEvent.id, Gameboard.StartAnalyticEvent.progress, Gameboard.StartAnalyticEvent.screenFrom, this.paintFill.TexWidth, Gameboard.pictureData.FillType); } } else { AnalyticsManager.StartNewColoring(Gameboard.StartAnalyticEvent.id, this.paintFill.TexWidth, Gameboard.pictureData.FillType); if (Gameboard.pictureData.PicClass == PicClass.FacebookGift) { AnalyticsManager.BonusPictureStartColoring(Gameboard.pictureData.Id); } else if (Gameboard.pictureData.PicClass == PicClass.Daily) { AnalyticsManager.DailyStartColoring(Gameboard.pictureData.Id); } } Gameboard.StartAnalyticEvent = null; } AnalyticsManager.LevelTryStarted(Gameboard.pictureData.Id, this.currentGUID); }
private void onAdLoadedEvent(string adUnit, float height) { this.currentBannerGUID = AnalyticsUtils.GenerateGUID(); this.userBannerImpression = true; FMLogger.vAds("onAdLoadedEvent. height: " + height); if (this.bannerVisable) { this.userBannerImpression = false; AnalyticsManager.BannerImpression(this.bannerAdUnit, this.currentBannerGUID, AdsManager.Instance.IsTabletAdUnit, this.bannerPosition == MoPubBase.AdPosition.BottomCenter); } else { FMLogger.vAds("hide banner loaded event. workaround"); MoPubAndroid.ShowBanner(this.bannerAdUnit, false); } }
private void Open() { this.currentGUID = AnalyticsUtils.GenerateGUID(); base.StartCoroutine(this.Slide()); AnalyticsManager.FairyShown(this.currentGUID, AdsManager.Instance.RewardConfig.timingBonus); }