private static void CheckExperience() { if (Profile.Instance.CurrentProfile.PrincessTitle == EnumsModel.PrincessTitle.MASTER) { CurrentLevel = 3; CurrentPrincessTitle = EnumsModel.PrincessTitle.MASTER; return; } if (CurrentExperience >= LevelExperience[2]) { if (CurrentPrincessTitle == EnumsModel.PrincessTitle.Queen) { return; } AchievementManager.AchieveQueenRank(); CurrentPrincessTitle = EnumsModel.PrincessTitle.Queen; CurrentLevel = (int)CurrentPrincessTitle; } else if (CurrentExperience >= LevelExperience[1]) { if (CurrentPrincessTitle == EnumsModel.PrincessTitle.Princess) { return; } AchievementManager.AchievePrincessRank(); CurrentPrincessTitle = EnumsModel.PrincessTitle.Princess; CurrentLevel = (int)CurrentPrincessTitle; } else if (CurrentExperience >= LevelExperience[0]) { if (CurrentPrincessTitle == EnumsModel.PrincessTitle.Duchess) { return; } AchievementManager.AchieveDuchessRank(); CurrentPrincessTitle = EnumsModel.PrincessTitle.Duchess; CurrentLevel = (int)CurrentPrincessTitle; } }