@@ -156,6 +156,11 @@ private void CacheAttributedMethods()
156156 }
157157 }
158158
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>
159164 protected void InvokeCommand ( string methodName , params object [ ] methodParams )
160165 {
161166 if ( NetworkingManager . singleton . isServer )
@@ -192,6 +197,11 @@ protected void InvokeCommand(string methodName, params object[] methodParams)
192197 }
193198 }
194199
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>
195205 protected void InvokeClientRpc ( string methodName , params object [ ] methodParams )
196206 {
197207 if ( ! NetworkingManager . singleton . isServer )
@@ -224,6 +234,11 @@ protected void InvokeClientRpc(string methodName, params object[] methodParams)
224234 }
225235 }
226236
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>
227242 protected void InvokeTargetRpc ( string methodName , params object [ ] methodParams )
228243 {
229244 if ( ! NetworkingManager . singleton . isServer )
@@ -673,7 +688,7 @@ protected void SendToLocalClientTarget(string messageType, string channelName, b
673688 InternalMessageHandler . Send ( ownerClientId , messageType , channelName , data , networkId , networkedObject . GetOrderIndex ( this ) ) ;
674689 }
675690
676- /// <summary>
691+ /// <summary>gh
677692 /// Sends a buffer to the client that owns this object from the server. Only handlers on this NetworkedBehaviour will get invoked
678693 /// </summary>
679694 /// <typeparam name="T">The class type to send</typeparam>
0 commit comments