diff options
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); } - } } |