protected static bool ParseScrollAnim( string parameters, MaterialScriptContext context )
{
string[] values = parameters.Split( new char[] { ' ', '\t' } );
if ( values.Length != 2 )
{
LogParseError( context, "Bad scroll_anim attribute, wrong number of parameters (expected 2)." );
}
else
{
context.textureUnit.SetScrollAnimation( StringConverter.ParseFloat( values[ 0 ] ), StringConverter.ParseFloat( values[ 1 ] ) );
}
return false;
}