public void Interpolate(float currentTime, UniformCommand command) { if (null == command) return; foreach (KeyValuePair<string, KeyFrames> item in uniforms) { var value = item.Value.Interpolate(currentTime); command(item.Key, value); } }
public void Interpolate(float currentTime, UniformCommand command) { if (ReferenceEquals(null, command)) { return; } foreach (KeyValuePair <string, KeyFrames> item in uniforms) { var value = item.Value.Interpolate(currentTime); command(item.Key, value); } }