Commit e93fc574 authored by wanqing's avatar wanqing

手势显示的问题优化

parent d2b3a637
...@@ -184,7 +184,7 @@ public class BattleUI : MonoBehaviour ...@@ -184,7 +184,7 @@ public class BattleUI : MonoBehaviour
//设置手势位置 //设置手势位置
public void SetMousePos(float x,float y) public void SetMousePos(float x,float y)
{ {
m_mouseObj.SetActive(x != 0 || y != 0); m_mouseObj.SetActive((x != 0 || y != 0) && !m_battleObj.activeSelf);
Vector2 varVec2 = m_mouseObj.transform.localPosition; Vector2 varVec2 = m_mouseObj.transform.localPosition;
varVec2.x = x; varVec2.x = x;
varVec2.y = y; varVec2.y = y;
......
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