public GoTweenConfig vector3YProp(string propertyName, float endValue, bool isRelative = false) { Vector3YTweenProperty item = new Vector3YTweenProperty(propertyName, endValue, isRelative); _tweenProperties.Add(item); return(this); }
/// <summary> /// generic vector3.y tween /// </summary> //public GoTweenConfig vector3YProp(string propertyName, float endValue, bool isRelative = false) { // var prop = new Vector3YTweenProperty(propertyName, endValue, isRelative); // _tweenProperties.Add(prop); // return this; //} public GoTweenConfig vector3YProp(Func <Vector3> getter, Action <Vector3> setter, float endValue, bool isRelative = false) { var prop = new Vector3YTweenProperty(getter, setter, endValue, isRelative); _tweenProperties.Add(prop); return(this); }
/// <summary> /// generic vector3.y tween /// </summary> public TweenConfig vector3YProp( string propertyName, float endValue, bool isRelative = false ) { var prop = new Vector3YTweenProperty( propertyName, endValue, isRelative ); _tweenProperties.Add( prop ); return this; }
/// <summary> /// shake generic vector3.y tween /// </summary> public GoTweenConfig shakeVector3YProp( string propertyName, float endValue, bool isRelative = true, int frameMod = 1 ) { var genericProp = new Vector3YTweenProperty( propertyName, endValue, isRelative ); var prop = new AttenuatedShakeTweenProperty( genericProp, frameMod ); _tweenProperties.Add( prop ); return this; }