Removed old comment

This commit is contained in:
vis2k 2018-12-30 20:12:07 +01:00
parent 8854eba284
commit 4ae6d21418

View File

@ -558,9 +558,6 @@ internal void HandleClientAuthority(bool authority)
// helper function to handle SyncEvent/Command/Rpc // helper function to handle SyncEvent/Command/Rpc
internal void HandleRemoteCall(int componentIndex, int functionHash, UNetInvokeType invokeType, NetworkReader reader) internal void HandleRemoteCall(int componentIndex, int functionHash, UNetInvokeType invokeType, NetworkReader reader)
{ {
// this doesn't use NetworkBehaviour.InvokeSyncEvent function (anymore). this method of calling is faster.
// The hash is only looked up once, insted of twice(!) per NetworkBehaviour on the object.
if (gameObject == null) if (gameObject == null)
{ {
string functionName = NetworkBehaviour.GetCmdHashHandlerName(functionHash); string functionName = NetworkBehaviour.GetCmdHashHandlerName(functionHash);