Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: running code cleanup on all scripts #640

Merged
merged 6 commits into from
Mar 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Sort accessibility modifiers
  • Loading branch information
James-Frowen committed Mar 1, 2021
commit d81a5ec5368a1fda5af15497214f6abcebe2d664
6 changes: 3 additions & 3 deletions Assets/Mirage/Runtime/NetworkBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ public abstract class NetworkBehaviour : MonoBehaviour
protected internal ulong SyncVarDirtyBits { get; private set; }
ulong syncVarHookGuard;

internal protected bool GetSyncVarHookGuard(ulong dirtyBit)
protected internal bool GetSyncVarHookGuard(ulong dirtyBit)
{
return (syncVarHookGuard & dirtyBit) != 0UL;
}

internal protected void SetSyncVarHookGuard(ulong dirtyBit, bool value)
protected internal void SetSyncVarHookGuard(ulong dirtyBit, bool value)
{
if (value)
syncVarHookGuard |= dirtyBit;
Expand Down Expand Up @@ -210,7 +210,7 @@ public int ComponentIndex
// this gets called in the constructor by the weaver
// for every SyncObject in the component (e.g. SyncLists).
// We collect all of them and we synchronize them with OnSerialize/OnDeserialize
internal protected void InitSyncObject(ISyncObject syncObject)
protected internal void InitSyncObject(ISyncObject syncObject)
{
syncObjects.Add(syncObject);
syncObject.OnChange += SyncObject_OnChange;
Expand Down