public static void SetLevel(int val) { PlayerPrefs.SetInt("level", val); if (GetQuestEndTime() != string.Empty && DateTime.Compare(DateTime.Now, DateTime.Parse(GetQuestEndTime())) < 0 && val == GetQuestEndLevel()) { SetQuestCompleted(1); NotificationSystem.DisableQuestLastTwoHoursNotifications(); } }