private void OnGUI()
 {
     if (GUILayout.Button("Send Msg:(NotifySystem.Send (10001))"))
     {
         NotifySystem.Send(10001);
     }
     if (GUILayout.Button("Send Msg:(NotifySystem.Send (10002, \"Notify System Test...\"))"))
     {
         NotifySystem.Send(10002, "Notify System Test...");
     }
     if (GUILayout.Button("Send Msg:(NotifySystem.Send (noticeObj))"))
     {
         INoticeObj noticeObj = new NoticeObj(10003, "Notice Object Test...");
         NotifySystem.Send(noticeObj);
     }
 }
Exemple #2
0
    /// <summary>
    /// 发送消息
    /// </summary>
    /// <param name="number">消息号</param>
    /// <param name="obj">要传递的参数</param>
    public static void Send(int number, object obj)
    {
        INoticeObj _noticeObj = new NoticeObj(number, obj);

        Send(_noticeObj);
    }