DESKTOP-B25GA9E\W35
2 years ago
3 changed files with 90 additions and 0 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using UnityEngine; |
||||
using JXSoft; |
||||
|
||||
public class UDPExample : MonoBehaviour,IUDPClient |
||||
{ |
||||
// Start is called before the first frame update |
||||
void Start() |
||||
{ |
||||
this.RegisterMessageEvent<UResponseTest>(e => |
||||
{ |
||||
Debug.Log(e.msg); |
||||
}); |
||||
this.onReceive<UResponseTest>(); |
||||
} |
||||
|
||||
// Update is called once per frame |
||||
void Update() |
||||
{ |
||||
|
||||
} |
||||
} |
||||
public class UResponseTest:AbstractJsonResponse { |
||||
public string msg; |
||||
} |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2 |
||||
guid: c4d0e1e2ff99ce341a7954c75d38f96a |
||||
MonoImporter: |
||||
externalObjects: {} |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
Loading…
Reference in new issue