MrLee
MrLee
```C# using System.Collections; using System.Collections.Generic; using UnityEngine; using Abc.Zebus.Core; using Abc.Zebus; using System.Threading.Tasks; using System.Threading; using StructureMap; public class NetWork : MonoBehaviour { private BusFactory busFactory; private CancellationTokenSource cancellationTokenSource =...
```C# using Abc.Zebus; using System.Collections; using System.Collections.Generic; using UnityEngine; using Newtonsoft.Json; public class MakeTeaCommandHandler : ICommandHandler { public void Handle(MakeTeaCommand message) { UnityEngine.Debug.Log($"Got command MakeTeaCommand orderNum:{message.OrderNum}"); } } ```
```C# using Abc.Zebus; using System.Collections; using System.Collections.Generic; using UnityEngine; using ProtoBuf; [ProtoContract] public class MakeTeaCommand : ICommand { [ProtoMember(1, IsRequired = true)] public int OrderNum { get; set; } }...
Eventhandler works well,so I just post the command code here.
Got it.I want use this on a chess game.So this framework is good enough for me.Another question,how can I get other peers that online?
Then can I group peers online?I want make some peers in one group like a room in game.Do the frame support do this or I can do this by other...
I tested this on Android.When it creating a bus, an error of directory throw out, may be directory path is different from windows.May be more error on ios or mac.
 After this, still have error posted.
> 谢谢你的解释!我试图将函数的类型`bool SubscribeCharacteristic(wchar_t* deviceId, wchar_t* serviceId, wchar_t* characteristicId, bool block)`从 bool 更改为 void,它现在可以工作了。 Thanks for sharing!
The dll file I was using is under .netstanded2.0. InTheHand.BluetoothLE.dll