diff --git a/Assets/Prototype/佩佩/佩佩视觉模块.unity b/Assets/Prototype/佩佩/佩佩视觉模块.unity index 48ab13e1c..d736acb4a 100644 --- a/Assets/Prototype/佩佩/佩佩视觉模块.unity +++ b/Assets/Prototype/佩佩/佩佩视觉模块.unity @@ -24343,6 +24343,14 @@ PrefabInstance: propertyPath: rotationCorrection.z value: -180 objectReference: {fileID: 0} + - target: {fileID: 4414950781642350908, guid: 1afc7e4d2be0126438b5fe65aaccc901, type: 3} + propertyPath: transformCorrection.x + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 4414950781642350908, guid: 1afc7e4d2be0126438b5fe65aaccc901, type: 3} + propertyPath: transformCorrection.y + value: -0.15 + objectReference: {fileID: 0} - target: {fileID: 4991240399770923164, guid: 1afc7e4d2be0126438b5fe65aaccc901, type: 3} propertyPath: m_LocalScale.x value: 0.093240894 diff --git a/Assets/Scripts/FixSystem/Line/CustomCursor.cs b/Assets/Scripts/FixSystem/Line/CustomCursor.cs index d326a040e..1c4467593 100644 --- a/Assets/Scripts/FixSystem/Line/CustomCursor.cs +++ b/Assets/Scripts/FixSystem/Line/CustomCursor.cs @@ -7,6 +7,8 @@ public class CustomCursor : MonoBehaviour public Texture2D cursorTexture; public Vector3 rotationCorrection; // 旋转修正,你可以在 Inspector 中设置 + public Vector2 transformCorrection; + private void Start() { // 设置旋转修正 @@ -17,7 +19,7 @@ public class CustomCursor : MonoBehaviour { // 设置自定义光标的位置为鼠标的位置 Vector2 cursorPos = Camera.main.ScreenToWorldPoint(Input.mousePosition); - transform.position = cursorPos; + transform.position = cursorPos+transformCorrection; } private void OnEnable()