//刷新档案红点数据 public void ReflashArchivesRedPoint() { int redPointCount = 0; if (PlayerPrefTool.GetIsThereNewChapterNPC()) { OnNewChapterTypeNotify(0); redPointCount++; } if (PlayerPrefTool.GetIsThereNewChapterClue()) { OnNewChapterTypeNotify(1); redPointCount++; } if (PlayerPrefTool.GetIsThereNewChapterScene()) { OnNewChapterTypeNotify(2); redPointCount++; } if (redPointCount == 0) { GameEvents.RedPointEvents.User_OnNewChapterBannerEvent.SafeInvoke(false); // } }
private void OnRefreshByPlayerPrefs() { if (PlayerPrefTool.GetIsThereNewEmail()) { OnNewEmailNotify(null); } if (PlayerPrefTool.GetIsThereNewFriend() || PlayerPrefTool.GetIsThereNewApply() || PlayerPrefTool.GetIsThereNewGift()) { OnNewFriendNotify(null); } if (PlayerPrefTool.GetIsThereNewActivity()) { OnNewActivityNotify(null); } if (PlayerPrefTool.GetIsThereNewAchievement()) { OnNewAchievementNotify(null); } if (PlayerPrefTool.GetIsThereNewNotice()) { OnNewNoticeNotify(null); } #if OFFICER_SYS if (PlayerPrefTool.GetIsThereNewPolice()) { OnNewPoliceNotify(); } #endif if (PlayerPrefTool.GetIsThereNewChapterNPC()) { OnNewChapterTypeNotify(0); } if (PlayerPrefTool.GetIsThereNewChapterClue()) { OnNewChapterTypeNotify(1); } if (PlayerPrefTool.GetIsThereNewChapterScene()) { OnNewChapterTypeNotify(2); } }