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