|
|
@ -2,10 +2,12 @@ using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.Events; |
|
|
|
using UnityEngine.Events; |
|
|
|
using QFramework; |
|
|
|
using QFrameworkCP; |
|
|
|
using TCPClientTools; |
|
|
|
using JXSoft; |
|
|
|
using System; |
|
|
|
using System; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace JXSoft { |
|
|
|
public class TCPMangerArchitecture : Architecture<TCPMangerArchitecture> |
|
|
|
public class TCPMangerArchitecture : Architecture<TCPMangerArchitecture> |
|
|
|
{ |
|
|
|
{ |
|
|
|
protected override void Init() |
|
|
|
protected override void Init() |
|
|
@ -14,7 +16,7 @@ public class TCPMangerArchitecture : Architecture<TCPMangerArchitecture> |
|
|
|
this.RegisterModel(new TCPEventModel()); |
|
|
|
this.RegisterModel(new TCPEventModel()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
public class TCPClientView : MonoBehaviour,IController,ICanSendEvent |
|
|
|
public class TCPClientView : MonoBehaviour,IController |
|
|
|
{ |
|
|
|
{ |
|
|
|
public UnityEvent onRecievedOpenDevice; |
|
|
|
public UnityEvent onRecievedOpenDevice; |
|
|
|
public UnityEvent onTCPLinkSuccess; |
|
|
|
public UnityEvent onTCPLinkSuccess; |
|
|
@ -109,4 +111,5 @@ public class LinkTCPRequest :IRequest{ |
|
|
|
return JsonUtility.ToJson(this); |
|
|
|
return JsonUtility.ToJson(this); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|