Ejemplo n.º 1
0
    //sends move request to "server" from gameManager
    public void requestMove(string inputMove)
    {
        server.getMessage(inputMove);

        if (manager.start)
        {
            //sends the movement change command to server
            // Translate the passed message into ASCII and store it as a Byte array.
            print("sending message to server");
            message  = inputMove;
            sendData = true;
        }
    }
Ejemplo n.º 2
0
 //sends move request to "server" from gameManager
 public void requestMove(string inputMove)
 {
     //sends the movement change command to server
     //(Will eventualy be TCP code to send inputMove to server)
     server.getMessage(inputMove);
 }