AttributesSyncInvokeRemoteMethod(Int32, ListUInt16, Object) Method
Invoke a method with the SynchronizableMethod attribute on target users with given parameters.
Namespace: Alteruna.Multiplayer.UnityAssembly: Alteruna.Multiplayer.Unity (in Alteruna.Multiplayer.Unity.dll) Version: 2.1.3+c5328b35489e83c42e288435f5acf6115fd519e0
public void InvokeRemoteMethod(
int id,
List<ushort> users,
params Object[] parameters
)
Parameters
- id Int32
- ID of method. Get the id by calling GetMethodAttributeId(string).
- users ListUInt16
- target users
- parameters Object
- Argument(s) of a target method
| IndexOutOfRangeException | Thrown when id is grater or equal to the amount of registered methods |
| ArgumentException | Thrown when parameters count of target method does not match count of given parameters |