public void onEndTransition(TransitionGUIFx fx) { // register with touch event manager once the transition finishes since the manager // depends on final element's position TouchEventManager.Instance.register(this, TouchPhase.Began, TouchPhase.Stationary); // update current gui position cache if (guiTexture != null) { guiPos.Set(guiTexture.pixelInset.x, guiTexture.pixelInset.y); } else { Rect screenBounds = getScreenBoundsAA(); guiPos.Set(screenBounds.x, screenBounds.y); } }
public void onEndTransition(TransitionGUIFx fx) { // register with touch event manager once the transition finishes since the manager // depends on final element's position TouchEventManager.Instance.register(this, TouchPhase.Began, TouchPhase.Ended); }