Method AddRPC
| Improve this Doc View SourceAddRPC(string, CoroutineHandler, CoroutineHandler)
Get a CustomRPC for your mod
Declaration
public CustomRPC AddRPC(string name, NetworkManager.CoroutineHandler serverReceive, NetworkManager.CoroutineHandler clientReceive)
Parameters
Type | Name | Description |
---|---|---|
string | name | Unique name for your RPC |
NetworkManager.CoroutineHandler | serverReceive | Delegate which gets called on client instances when packages are received |
NetworkManager.CoroutineHandler | clientReceive | Delegate which gets called on server instances when packages are received |
Returns
Type | Description |
---|---|
CustomRPC | Existing or newly created CustomRPC |