예제 #1
0
 // Sends a RPC to all clients
 public void SendRPC(RPC RPCToSend)
 {
     // Publish this new message on the send topic
     networkingManager.Publish(sendCommandsTopic, JsonConvert.SerializeObject(RPCToSend));
 }
예제 #2
0
 // Sends a command to all clients
 public void SendServerCommand(ServerCommand serverCommandToSend)
 {
     // Publish the server command as a JSON string on the send topic
     networkingManager.Publish(sendCommandsTopic, JsonConvert.SerializeObject(serverCommandToSend));
 }