NetworkBehaviour.SyncVarGameObjectEqual made internal so we can test it. We will make this static soon anyway.

This commit is contained in:
vis2k 2020-03-07 14:29:03 +01:00
parent 7c4ea0d08b
commit fa707832a9

View File

@ -470,7 +470,7 @@ public static CmdDelegate GetDelegate(int cmdHash)
// helper function for [SyncVar] GameObjects. // helper function for [SyncVar] GameObjects.
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
protected bool SyncVarGameObjectEqual(GameObject newGameObject, uint netIdField) internal bool SyncVarGameObjectEqual(GameObject newGameObject, uint netIdField)
{ {
uint newNetId = 0; uint newNetId = 0;
if (newGameObject != null) if (newGameObject != null)