public void OnHintClick() { if (GeneralSettings.HintsCount == 0 && !GeneralSettings.AdsDisabled) { if (AdsManager.Instance.HasRewardedVideo()) { GeneralSettings.HintRewardUse++; this.rewardBonus = 1; AdsManager.Instance.rewardInfo.SetPlace(RewardEventData.Place.Hint); AdsManager.Instance.ShowRewardedVideo(); } else { this.toastManager.ShowEmptyHints(); } } else if (this.gameboard.FindEmptyZone()) { GeneralSettings.HintUsed(); this.hintButton.UpdateUI(); this.hintButton.PlayUsedAnimation(); AnalyticsManager.HintUse(this.gameboard.HintsUsed, GeneralSettings.HintsUsed, Gameboard.pictureData.Id, this.gameboard.currentGUID); } }