public void ShowRateApp(RateAppPoint rap) { _currentRatePoint = rap; int ray = PlayerPrefs.GetInt("RateAppY"); if (ray == 0 && PlayerPrefs.GetInt("RateApp" + (int)rap) == 0) { UIMessageBoxManager.Instance.ShowMessageBox(Localization.instance.Get("IDS_RATE_OUR_GAME"), "", MB_TYPE.MB_OKCANCEL, OnRateClick); } _showRateApp = false; }
public void OnRateClick(ID_BUTTON buttonID) { if (buttonID == ID_BUTTON.ID_OK) { PlayerPrefs.SetInt("RateAppY", 1); PlayerPrefs.Save(); GotoRateApp(); } else { PlayerPrefs.SetInt(("RateApp" + (int)_currentRatePoint), 1); } _currentRatePoint = RateAppPoint.NONE; }