publicclassColorAnimationTest:MonoBehaviour{privateColor color;privatevoidStart() { // Animate a color from white to black in 1 secondAnimationCreator.ColorAnimation(Color.white,Color.black, (x) => color = x,1); }}
Color Array
publicclassColorAnimationTest:MonoBehaviour{privateColor color;privatevoidStart() { // Animate through all colors in 1 secondAnimationCreator.ColorAnimation(newColor[] { Color.white,Color.black,Color.red }, (x) => color = x,1); }}