public onUpdate ( Action |
||
onUpdate | Action |
|
return | GoTweenConfig, |
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)); } }
// 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); }
// 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); }