Beispiel #1
0
 public void ReceivedClientInfo(MyInformation _client)
 {
     recievedInfo = new ReceivedClient(_client.Myobject, _client.Mymessage);
     print("(Server)From : " + recievedInfo.RecOb);
     print("(Server)Said : " + recievedInfo.RecMes);
     SendInfoToClient(recievedInfo);
 }
Beispiel #2
0
    void SendInfoToClient(ReceivedClient _clientInfo)
    {
        SendingInfo = new ToSendInfo(_clientInfo.RecOb, _clientInfo.RecMes);
        print("(Server)Sending OB : " + SendingInfo.RecOb);
        print("(Server)Sending Mes : " + SendingInfo.RecMes);

        foreach (GameObject ob in AllUsers)
        {
            ob.GetComponent <Client>().ReceiveInfoFromServer(SendingInfo);
        }
    }