From 6dbca86d957f774059068b8dbe01170d71cb0e8f Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Thu, 29 Jun 2023 10:04:49 +0800 Subject: *misc --- WorldlineKeepers/Assets/Scripts/Tools/Info.cs | 1 + .../Assets/Scripts/Tools/Notification/NotificationExtensions.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'WorldlineKeepers/Assets/Scripts/Tools') diff --git a/WorldlineKeepers/Assets/Scripts/Tools/Info.cs b/WorldlineKeepers/Assets/Scripts/Tools/Info.cs index 50e2d42..54ca2b9 100644 --- a/WorldlineKeepers/Assets/Scripts/Tools/Info.cs +++ b/WorldlineKeepers/Assets/Scripts/Tools/Info.cs @@ -1,3 +1,4 @@ +// 替换tuple public class Info { diff --git a/WorldlineKeepers/Assets/Scripts/Tools/Notification/NotificationExtensions.cs b/WorldlineKeepers/Assets/Scripts/Tools/Notification/NotificationExtensions.cs index 8313f7b..3055484 100644 --- a/WorldlineKeepers/Assets/Scripts/Tools/Notification/NotificationExtensions.cs +++ b/WorldlineKeepers/Assets/Scripts/Tools/Notification/NotificationExtensions.cs @@ -3,6 +3,9 @@ using System; namespace WK { + /// + /// 作为消息发布者实现这个接口 + /// public interface INotification { } @@ -12,6 +15,5 @@ namespace WK public static void AddObserver(this INotification _this, string msg, NotificationCenter.NotificatonHandler handler) { NotificationCenter.Instance.AddObserver(_this, msg, handler); } public static void RemoveObserver(this INotification _this, string msg, NotificationCenter.NotificatonHandler handler) { NotificationCenter.Instance.RemoveObserver(_this, msg, handler); } public static void PostNotification(this INotification _this, string msg, params object[] p) { NotificationCenter.Instance.PostNotification(_this, msg, p); } - } } -- cgit v1.1-26-g67d0