setIsTo() public method

sets if this Tween should be a "to" Tween.
public setIsTo ( ) : GoTweenConfig
return GoTweenConfig
コード例 #1
0
    public static GoTween to(object target, float duration, GoTweenConfig config)
    {
        config.setIsTo();
        GoTween goTween = new GoTween(target, duration, config);

        addTween(goTween);
        return(goTween);
    }
コード例 #2
0
    public static GoTween to(object target, GoSpline path, float speed, GoTweenConfig config)
    {
        config.setIsTo();
        path.buildPath();
        float   duration = path.pathLength / speed;
        GoTween goTween  = new GoTween(target, duration, config);

        addTween(goTween);
        return(goTween);
    }
コード例 #3
0
 static public int setIsTo(IntPtr l)
 {
     try {
         GoTweenConfig self = (GoTweenConfig)checkSelf(l);
         var           ret  = self.setIsTo();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #4
0
ファイル: Go.cs プロジェクト: huylu/AngryBirdsClone
	/// <summary>
	/// helper function that creates a "to" Tween and adds it to the pool
	/// </summary>
	public static GoTween to( object target, float duration, GoTweenConfig config )
	{
        config.setIsTo();
		var tween = new GoTween( target, duration, config );
		addTween( tween );

		return tween;
	}
コード例 #5
0
ファイル: Go.cs プロジェクト: SavaMinic/8plus1
    public static GoTween to( object target, GoSpline path, float speed, GoTweenConfig config )
    {
        config.setIsTo();
        path.buildPath();
        float duration = path.pathLength / speed;
        var tween = new GoTween( target, duration, config );
        addTween( tween );

        return tween;
    }