RPC for specific player or to all players

Good afternoon!

Everything is clear in the work of server command and client RPC. However, usually for security, I share client and server code in the different classes. What to do in this case? How to send RPC from server to specific player or to all players?

client RPC calls cannot be sent to specific players currently. Try network messages. You can send messages to specific players using NetworkServer.SendToClient.