goTo() 공개 메소드

goes to the specified time clamping it from 0 to the total duration of the tween. if the tween is not playing it will be force updated to the time specified.
public goTo ( float time, bool skipDelay ) : void
time float
skipDelay bool
리턴 void
예제 #1
0
    void Start()
    {
        if ( Path != null )
        {
            tween = Path.GetComponent<PointPath> ().Animate ( gameObject, Duration, Ease, LoopInfinitely, IsRelative );

            if ( StartTime != 0 )
                tween.goTo ( StartTime );
        }
    }
예제 #2
0
 static public int goTo(IntPtr l)
 {
     try {
         GoTween       self = (GoTween)checkSelf(l);
         System.Single a1;
         checkType(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.goTo(a1, a2);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }