Convert Code

Hello there,
i want to convert this into c#… help me plz…

var animationSpeed:float;

function Update ()
{
for (var state : AnimationState in animation)
``{
state.speed = animationSpeed;
}
}

Just a quick straight conversion for what you have:

public float animationSpeed;

void Update ()
{
	foreach( AnimationState state in animation )
	{
		state.speed = animationSpeed;
	}
}