onUpdate() public method

sets the onUpdate handler for the Tween
public onUpdate ( Action onUpdate ) : GoTweenConfig,
onUpdate Action
return GoTweenConfig,
Ejemplo n.º 1
0
 static public int onUpdate(IntPtr l)
 {
     try {
         GoTweenConfig self = (GoTweenConfig)checkSelf(l);
         System.Action <AbstractGoTween> a1;
         LuaDelegation.checkDelegate(l, 2, out a1);
         var ret = self.onUpdate(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     ProgressBar.transform.localPosition = new Vector3 (-500,0,0);
     GoTweenConfig config = new GoTweenConfig ();
     config.localPosition(new Vector3 (0, 0, 0));
     config.delay = 1f;
     config.setIterations (1);
     config.onUpdate (delegate(AbstractGoTween obj)
     {
         onProgress();
     });
     config.onComplete (delegate {
         GlobalManager.GotoGamePanel();
     });
     Go.to (ProgressBar.transform, 4, config);
 }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        ProgressBar.transform.localPosition = new Vector3(-500, 0, 0);
        GoTweenConfig config = new GoTweenConfig();

        config.localPosition(new Vector3(0, 0, 0));
        config.delay = 1f;
        config.setIterations(1);
        config.onUpdate(delegate(AbstractGoTween obj)
        {
            onProgress();
        });
        config.onComplete(delegate {
            GlobalManager.GotoGamePanel();
        });
        Go.to(ProgressBar.transform, 4, config);
    }