weird NetworkSyncAnimation bug

im using the 3rd person network animation sync script…
but ive run into some strange problem.

the animations are supposed to be enumerated after their index, but a animation i have wich i index as 0 always turn out as a 4. and no matter what i do with the animation list and the animation component, it turn out as 4. and those before 4 does not work…

and when i set my first animation to index 0(idle),
public AniStates currentAnimation = AniStates.idle;

currentAnimation uses enumeration 4 instead…

its like 4 = AniStates 0… ???

why does my list not start at 0?

Can you post the code where you declare the AniStates enum? (I assume you’ve modified what is in the original script.)

i somehow found the magic combination… and i cant change positions nor index number for it to work…
it works kindof now if i declare them in this order:

	public enum AniStates 
	{
		
		run ,
		hit,
		jump = 2,
		idle = 4,
		left1 = 5,
		left2 = 6 ,
		right1 = 7,
		right2 = 8,
		
	}

the rest of the script is as it was.

its weird cause i only have 0 - 7 in the animation list.

but it works …