Code formatting

This commit is contained in:
Chris Langsenkamp 2019-10-05 10:13:13 -04:00
parent 8aebfdec1a
commit 1f2ff6b2c9

View File

@ -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();