Inheritance: AbstractTweenProperty, IGenericProperty
コード例 #1
0
    public GoTweenConfig vector3PathProp(string propertyName, GoSpline path, bool isRelative = false)
    {
        Vector3PathTweenProperty item = new Vector3PathTweenProperty(propertyName, path, isRelative);

        _tweenProperties.Add(item);
        return(this);
    }
コード例 #2
0
ファイル: GoTweenConfig.cs プロジェクト: atpx0001/XGames
    /// <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
ファイル: TweenConfig.cs プロジェクト: nbolabs/GoKit
    /// <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
ファイル: GoTweenConfig.cs プロジェクト: tanis2000/Futile
    /// <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;
    }