setIsFrom() публичный Метод

sets if this Tween should be a "from" Tween. From Tweens use the current property as the endValue and the endValue as the start value
public setIsFrom ( ) : GoTweenConfig
Результат GoTweenConfig
Пример #1
0
    public static GoTween from(object target, float duration, GoTweenConfig config)
    {
        config.setIsFrom();
        GoTween goTween = new GoTween(target, duration, config);

        addTween(goTween);
        return(goTween);
    }
Пример #2
0
    public static GoTween from(object target, GoSpline path, float speed, GoTweenConfig config)
    {
        config.setIsFrom();
        path.buildPath();
        float   duration = path.pathLength / speed;
        GoTween goTween  = new GoTween(target, duration, config);

        addTween(goTween);
        return(goTween);
    }
Пример #3
0
 static public int setIsFrom(IntPtr l)
 {
     try {
         GoTweenConfig self = (GoTweenConfig)checkSelf(l);
         var           ret  = self.setIsFrom();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #4
0
    /// <summary>
    /// helper function that creates a "from" Tween and adds it to the pool
    /// </summary>
    public static GoTween from(object target, float duration, GoTweenConfig config)
    {
        if (duration == 0)
        {
            throw new System.Exception("Duration is zero !");
        }

        config.setIsFrom();
        var tween = new GoTween(target, duration, config);

        addTween(tween);

        return(tween);
    }
Пример #5
0
    /// <summary>
    /// helper function that creates a "from" Tween and adds it to the pool
    /// </summary>
    public static GoTween from( object target, float duration, GoTweenConfig config )
    {
        config.setIsFrom();
        var tween = new GoTween( target, duration, config );
        addTween( tween );

        return tween;
    }
Пример #6
0
    public static GoTween from( object target, GoSpline path, float speed, GoTweenConfig config )
    {
        config.setIsFrom();
        path.buildPath();
        float duration = path.pathLength / speed;
        var tween = new GoTween( target, duration, config );
        addTween( tween );

        return tween;
    }