void SendInput(int receiver) { byte[] input = StreamSDK.GetInput(); if (input != null) { switch (netTech) { case NetTech.photon: PhotonWrapper.instance.SendInput(input, receiver); break; //case NetTech.tnet: //TNetWrapper.instance.SendInput( input, receiver ); //break; } } }
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; */ } } }