Inheritance: AbstractTweenProperty, IGenericProperty
    public GoTweenConfig vector4Prop(string propertyName, Vector4 endValue, bool isRelative = false)
    {
        Vector4TweenProperty item = new Vector4TweenProperty(propertyName, endValue, isRelative);

        _tweenProperties.Add(item);
        return(this);
    }
Beispiel #2
0
    /// <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);
    }
Beispiel #3
0
    /// <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;
    }
Beispiel #4
0
    /// <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;
    }