mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Remove privates (#1072)
This commit is contained in:
parent
58be4d44fd
commit
650f9caa50
@ -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
|
||||
|
@ -17,7 +17,7 @@ void SetColor(Color color)
|
||||
materialClone.color = color;
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
void OnDestroy()
|
||||
{
|
||||
Destroy(materialClone);
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -1242,7 +1242,7 @@ internal void MirrorUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
private void ClearDirtyBits()
|
||||
void ClearDirtyBits()
|
||||
{
|
||||
foreach (NetworkBehaviour comp in NetworkBehaviours)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user