mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Code formatting
This commit is contained in:
parent
8aebfdec1a
commit
1f2ff6b2c9
@ -65,7 +65,7 @@ void Awake()
|
||||
lastIntParameters = new int[parameters.Length];
|
||||
lastFloatParameters = new float[parameters.Length];
|
||||
lastBoolParameters = new bool[parameters.Length];
|
||||
|
||||
|
||||
animationHash = new int[animator.layerCount];
|
||||
transitionHash = new int[animator.layerCount];
|
||||
}
|
||||
@ -76,8 +76,8 @@ void FixedUpdate()
|
||||
return;
|
||||
|
||||
CheckSendRate();
|
||||
|
||||
for(int i = 0; i < animator.layerCount; i++)
|
||||
|
||||
for (int i = 0; i < animator.layerCount; i++)
|
||||
{
|
||||
int stateHash;
|
||||
float normalizedTime;
|
||||
@ -92,7 +92,7 @@ void FixedUpdate()
|
||||
SendAnimationMessage(stateHash, normalizedTime, i, writer.ToArray());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool CheckAnimStateChanged(out int stateHash, out float normalizedTime, int layerId)
|
||||
{
|
||||
stateHash = 0;
|
||||
@ -303,7 +303,7 @@ public override bool OnSerialize(NetworkWriter writer, bool forceAll)
|
||||
{
|
||||
if (forceAll)
|
||||
{
|
||||
for(int i = 0; i < animator.layerCount; i++)
|
||||
for (int i = 0; i < animator.layerCount; i++)
|
||||
{
|
||||
if (animator.IsInTransition(i))
|
||||
{
|
||||
@ -333,7 +333,7 @@ public override void OnDeserialize(NetworkReader reader, bool initialState)
|
||||
{
|
||||
if (initialState)
|
||||
{
|
||||
for(int i = 0; i < animator.layerCount; i++)
|
||||
for (int i = 0; i < animator.layerCount; i++)
|
||||
{
|
||||
int stateHash = reader.ReadInt32();
|
||||
float normalizedTime = reader.ReadSingle();
|
||||
|
Loading…
Reference in New Issue
Block a user