void SendStream(int receiver) { StreamSDK.GetInput(); StreamSDK.GetMouse(); byte[] stream = StreamSDK.GetStream(); if (stream != null) { switch (netTech) { case NetTech.photon: PhotonWrapper.instance.SendStream(stream, receiver); break; /* * case NetTech.tnet: * TNetWrapper.instance.SendStream( stream, receiver ); * break; */ } } }
void SendMouse(int receiver) { #if !UNITY_WSA byte[] mouse = StreamSDK.GetMouse(); if (mouse != null) { switch (netTech) { case NetTech.photon: PhotonWrapper.instance.SendMouse(mouse, receiver); break; /* * case NetTech.tnet: * TNetWrapper.instance.SendMouse( mouse, receiver ); * break; */ } } #endif }