diff options
author | chai <215380520@qq.com> | 2023-06-29 10:04:49 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-06-29 10:04:49 +0800 |
commit | 6dbca86d957f774059068b8dbe01170d71cb0e8f (patch) | |
tree | 7b7f9511f70ceee27944741eaa850f05431354eb /WorldlineKeepers/Assets/Scripts/Tools | |
parent | 05cb0609b1ddef5380a7c9442605cbfdad4df192 (diff) |
*misc
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Tools')
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Tools/Info.cs | 1 | ||||
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Tools/Notification/NotificationExtensions.cs | 4 |
2 files changed, 4 insertions, 1 deletions
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<T0> { 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 { + /// <summary> + /// 作为消息发布者实现这个接口 + /// </summary> 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); } - } } |