public void SetAttachType(MouseAttachFuncType type) { if (m_currentAttachType == type) { return; } if (m_currentAttachType == type && (isAttackSign(type) || type == MouseAttachFuncType.RetreatSign)) { type = MouseAttachFuncType.None; } if (skillCtrl) { if (skillCtrl.isSelecting()) { return; } else { skillCtrl.resetSkill(); } } m_currentAttachType = type; m_multiAttachFunc = false; bPickingMovePoint = false; if (m_currentAttachType == MouseAttachFuncType.None) { } else { LockCursor = false; } }