Ok i understand how an rpc is sent but how the hell do you read it on a client and on the server?
so far htis is what i have,
void SendMSG(string msg)
{
Debug.Log("Sending msg: " + msg);
NetworkViewID VID = Network.AllocateViewID();
networkView.RPC("SendRpcMsg",RPCMode.AllBuffered, VID , msg);
Debug.Log("Msg sent");
}
[RPC]
void SendRpcMsg(NetworkViewID ID, string msg)
{
string RpcMsg = msg;
Debug.Log("Msg = "+ msg);
}