|
@@ -237,7 +237,11 @@ namespace GFGGame
|
|
_ui.m_catcher.target.visible = true;
|
|
_ui.m_catcher.target.visible = true;
|
|
_ui.m_catcher.target.draggable = true;
|
|
_ui.m_catcher.target.draggable = true;
|
|
//_ui.m_catcher.target.dragBounds = new Rect(-_ui.m_catcher.target.width / 2, _ui.m_catcher.target.y, Stage.inst.width + _ui.m_catcher.target.width, 0);
|
|
//_ui.m_catcher.target.dragBounds = new Rect(-_ui.m_catcher.target.width / 2, _ui.m_catcher.target.y, Stage.inst.width + _ui.m_catcher.target.width, 0);
|
|
- _ui.m_catcher.target.dragBounds = new Rect(_ui.m_startLeft.x, _ui.m_catcher.target.y, _ui.m_startRight.x - _ui.m_startLeft.x, 0);
|
|
|
|
|
|
+ Vector2 dragLeftPos = _ui.m_startLeft.LocalToGlobal(Vector2.zero)/(UIContentScaler.scaleFactor);
|
|
|
|
+ Vector2 dragRightPos = _ui.m_startRight.LocalToGlobal(Vector2.zero) / (UIContentScaler.scaleFactor);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ _ui.m_catcher.target.dragBounds = new Rect(dragLeftPos.x, _ui.m_catcher.target.y, _ui.m_startRight.x - _ui.m_startLeft.x, 0);
|
|
}
|
|
}
|
|
|
|
|
|
private void StartGame()
|
|
private void StartGame()
|