Inheritance: AbstractTweenProperty, IGenericProperty
    public GoTweenConfig vector3PathProp(string propertyName, GoSpline path, bool isRelative = false)
    {
        Vector3PathTweenProperty item = new Vector3PathTweenProperty(propertyName, path, isRelative);

        _tweenProperties.Add(item);
        return(this);
    }
示例#2
0
    /// <summary>
    /// generic vector3 path tween
    /// </summary>
    //public GoTweenConfig vector3PathProp(string propertyName, GoSpline path, bool isRelative = false) {
    //    var prop = new Vector3PathTweenProperty(propertyName, path, isRelative);
    //    _tweenProperties.Add(prop);

    //    return this;
    //}

    public GoTweenConfig vector3PathProp(Func <Vector3> getter, Action <Vector3> setter, GoSpline path, bool isRelative = false)
    {
        var prop = new Vector3PathTweenProperty(getter, setter, path, isRelative);

        _tweenProperties.Add(prop);

        return(this);
    }
示例#3
0
    /// <summary>
    /// generic vector3 path tween
    /// </summary>
    public TweenConfig vector3PathProp( string propertyName, GoSpline path, bool isRelative = false )
    {
        var prop = new Vector3PathTweenProperty( propertyName, path, isRelative );
        _tweenProperties.Add( prop );

        return this;
    }
示例#4
0
    /// <summary>
    /// shake generic vector3 path tween
    /// </summary>
    public GoTweenConfig shakeVector3PathProp( string propertyName, GoSpline path, bool isRelative = true, int frameMod = 1 )
    {
        var genericProp = new Vector3PathTweenProperty( propertyName, path, isRelative );
        var prop = new AttenuatedShakeTweenProperty( genericProp, frameMod );
        _tweenProperties.Add( prop );

        return this;
    }