예제 #1
0
    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;
            }
        }
    }
예제 #2
0
    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;
                 */
            }
        }
    }