Commit 9825c061 authored by wanqing's avatar wanqing

手指图标跟爪子移动

parent 296063c9
...@@ -568,9 +568,13 @@ public class ChainRopeView : MonoBehaviour ...@@ -568,9 +568,13 @@ public class ChainRopeView : MonoBehaviour
} }
if (Input.GetMouseButton(0)) if (Input.GetMouseButton(0))
{ {
float varX = Input.mousePosition.x - Screen.width / 2f; //float varX = Input.mousePosition.x - Screen.width / 2f;
float varY = Input.mousePosition.y - Screen.height / 2f; //float varY = Input.mousePosition.y - Screen.height / 2f;
BattleCtrl.instance.battleUI.SetMousePos(varX, varY); //BattleCtrl.instance.battleUI.SetMousePos(varX, varY);
Vector3 varVec3 = Camera.main.WorldToScreenPoint(m_topCollider.transform.position);
varVec3.x = varVec3.x - Screen.width / 2f + 100;
varVec3.y = varVec3.y - Screen.height / 2f - 100;
BattleCtrl.instance.battleUI.SetMousePos(varVec3.x, varVec3.y);
} }
else if (Input.GetMouseButtonUp(0)) else if (Input.GetMouseButtonUp(0))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment