@@ -156,6 +156,11 @@ private void CacheAttributedMethods()
156
156
}
157
157
}
158
158
159
+ /// <summary>
160
+ /// Calls a Command method on server
161
+ /// </summary>
162
+ /// <param name="methodName">Method name to invoke</param>
163
+ /// <param name="methodParams">Method parameters to send</param>
159
164
protected void InvokeCommand ( string methodName , params object [ ] methodParams )
160
165
{
161
166
if ( NetworkingManager . singleton . isServer )
@@ -192,6 +197,11 @@ protected void InvokeCommand(string methodName, params object[] methodParams)
192
197
}
193
198
}
194
199
200
+ /// <summary>
201
+ /// Calls a ClientRpc method on all clients
202
+ /// </summary>
203
+ /// <param name="methodName">Method name to invoke</param>
204
+ /// <param name="methodParams">Method parameters to send</param>
195
205
protected void InvokeClientRpc ( string methodName , params object [ ] methodParams )
196
206
{
197
207
if ( ! NetworkingManager . singleton . isServer )
@@ -224,6 +234,11 @@ protected void InvokeClientRpc(string methodName, params object[] methodParams)
224
234
}
225
235
}
226
236
237
+ /// <summary>
238
+ /// Calls a TargetRpc method on the owner client
239
+ /// </summary>
240
+ /// <param name="methodName">Method name to invoke</param>
241
+ /// <param name="methodParams">Method parameters to send</param>
227
242
protected void InvokeTargetRpc ( string methodName , params object [ ] methodParams )
228
243
{
229
244
if ( ! NetworkingManager . singleton . isServer )
@@ -673,7 +688,7 @@ protected void SendToLocalClientTarget(string messageType, string channelName, b
673
688
InternalMessageHandler . Send ( ownerClientId , messageType , channelName , data , networkId , networkedObject . GetOrderIndex ( this ) ) ;
674
689
}
675
690
676
- /// <summary>
691
+ /// <summary>gh
677
692
/// Sends a buffer to the client that owns this object from the server. Only handlers on this NetworkedBehaviour will get invoked
678
693
/// </summary>
679
694
/// <typeparam name="T">The class type to send</typeparam>
0 commit comments