Browse Source

添加和发送示例

DGJ 1 year ago
parent
commit
bcd945c9bf
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Assets/2.0/Tools/DownLoadItem.cs

+ 4 - 1
Assets/2.0/Tools/DownLoadItem.cs

@@ -67,7 +67,10 @@ public class DownLoadItem : MonoBehaviour
                 downLoadState = "下载成功";
                 downLoadData = webRequest.downloadHandler.data;
                 isDownLoad = true;
-                MsgHandler.AddListener("", HandleMsg);
+                MsgHandler.AddListener("AAAA", HandleMsg);
+
+                Msg msg = new Msg("akdfakdf", new object());
+                MsgHandler.SendMsg("AAA", msg)
             }
             CallBacke(isDownLoad);
         }