Remove privates (#1072)

This commit is contained in:
MrGadget 2019-09-12 00:07:44 -04:00 committed by Paul Pacheco
parent 58be4d44fd
commit 650f9caa50
4 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ public enum Compression { None, Much, Lots, NoRotation }; // easily understandab
// server
Vector3 lastPosition;
Quaternion lastRotation;
private Vector3 lastScale;
Vector3 lastScale;
// client
public class DataPoint

View File

@ -17,7 +17,7 @@ void SetColor(Color color)
materialClone.color = color;
}
private void OnDestroy()
void OnDestroy()
{
Destroy(materialClone);
}

View File

@ -91,7 +91,7 @@ public class NetworkBehaviour : MonoBehaviour
public NetworkConnection connectionToClient => netIdentity.connectionToClient;
protected ulong syncVarDirtyBits { get; private set; }
private ulong syncVarHookGuard;
ulong syncVarHookGuard;
protected bool getSyncVarHookGuard(ulong dirtyBit)
{
@ -172,7 +172,7 @@ protected void InitSyncObject(SyncObject syncObject)
#region Commands
private static int GetMethodHash(Type invokeClass, string methodName)
static int GetMethodHash(Type invokeClass, string methodName)
{
// (invokeClass + ":" + cmdName).GetStableHashCode() would cause allocations.
// so hash1 + hash2 is better.

View File

@ -1242,7 +1242,7 @@ internal void MirrorUpdate()
}
}
private void ClearDirtyBits()
void ClearDirtyBits()
{
foreach (NetworkBehaviour comp in NetworkBehaviours)
{