/// <summary> /// generic color tween /// </summary> public TweenConfig colorProp( string propertyName, Color endValue, bool isRelative = false ) { var prop = new ColorTweenProperty( propertyName, endValue, isRelative ); _tweenProperties.Add( prop ); return this; }
public GoTweenConfig colorProp(string propertyName, Color endValue, bool isRelative = false) { ColorTweenProperty item = new ColorTweenProperty(propertyName, endValue, isRelative); _tweenProperties.Add(item); return(this); }
/// <summary> /// generic color tween /// </summary> //public GoTweenConfig colorProp(string propertyName, Color endValue, bool isRelative = false) { // var prop = new ColorTweenProperty(propertyName, endValue, isRelative); // _tweenProperties.Add(prop); // return this; //} public GoTweenConfig colorProp(Func <Color> getter, Action <Color> setter, Color endValue, bool isRelative = false) { var prop = new ColorTweenProperty(getter, setter, endValue, isRelative); _tweenProperties.Add(prop); return(this); }
/// <summary> /// shake generic color tween /// </summary> public GoTweenConfig shakeColorProp( string propertyName, Color endValue, bool isRelative = true, int frameMod = 1 ) { var genericProp = new ColorTweenProperty( propertyName, endValue, isRelative ); var prop = new AttenuatedShakeTweenProperty( genericProp, frameMod ); _tweenProperties.Add( prop ); return this; }