NetworkBehaviour.GetMethodHash made internal for tests

This commit is contained in:
vis2k 2020-02-24 15:31:23 +01:00
parent e6cd2e2280
commit e9c6f6f2a9

View File

@ -170,7 +170,7 @@ protected void InitSyncObject(SyncObject syncObject)
#region Commands
static int GetMethodHash(Type invokeClass, string methodName)
internal static int GetMethodHash(Type invokeClass, string methodName)
{
// (invokeClass + ":" + cmdName).GetStableHashCode() would cause allocations.
// so hash1 + hash2 is better.