Hello everyone.
I have turn-based multiplayer game for 2 players. I want players notify each other with rpc-calls.
I have very simple net-object:
public class Gateway : NetworkBehaviour
{
[Rpc(SendTo.Owner,RequireOwnership =false)]
public void ServerRpc() {
print("executed on the "+(IsHost?"server":"client"));
}
}
Expected this function to be called on the client and executed on the server.
I have iterated through all constants in SendTo. No one of them does what expected.
The best I have so far is server able to trigger rpc function on the client. But in opposite direction(client->server) it doesn’t work.
Any help appreciated.