add comments

This commit is contained in:
vis2k 2021-03-08 22:31:03 +08:00
parent 4eed0ff7f1
commit 77ed0055a8

View File

@ -59,11 +59,13 @@ public abstract class NetworkBehaviour : MonoBehaviour
protected ulong syncVarDirtyBits { get; private set; }
ulong syncVarHookGuard;
// USED BY WEAVER to set syncvars in host mode without deadlocking
protected bool getSyncVarHookGuard(ulong dirtyBit)
{
return (syncVarHookGuard & dirtyBit) != 0UL;
}
// USED BY WEAVER to set syncvars in host mode without deadlocking
protected void setSyncVarHookGuard(ulong dirtyBit, bool value)
{
if (value)