public static bool ParseFogParameters(string literal, ref FogParameters result)
{
//Debug.Log("Parsing " + literal + " as FogParams");
var i = 0;
if (!ParseRgb(literal, ref i, ref result.Color) || !ParseDecimal(literal, ref i, ref result.Density))
{
Debug.LogWarning("Parsing '" + literal + "' as FogParameters failed; skipping the rest.");
return false;
}
return true;
}