// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2021-05-26 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** using UnityEngine; namespace G.UI { public partial class RateBox : KUIWindow { #region Constructor public RateBox() : base(UILayer.kPopup, UIMode.kNone) { uiPath = "ui_w_rate"; } #endregion #region Method public static void AppRatingByLevel(int levelId) { if (levelId >= 4 && !KRemoteConfig.Instance.isReview) { int rate = PlayerPrefs.GetInt("rate", 0); if (rate == 0 && (levelId == 4 || levelId == 9)) { OpenWindow(); } else if (rate == 2 && ((levelId % 12) == 0))//下一次 { OpenWindow(); } } } #endregion #region Unity /// /// /// public override void Awake() { InitView(); } /// /// /// public override void OnEnable() { RefreshView(); } /// /// /// public override void Update() { UpdateView(); } /// /// /// public override void UpdatePerSecond() { } #endregion } }