This commit is contained in:
shurongsen 2024-10-19 03:01:21 +08:00
parent f0fcfed2da
commit c25411cb0f
2 changed files with 9 additions and 14 deletions

View File

@ -1779,9 +1779,9 @@ RectTransform:
m_Father: {fileID: 1053959665}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 416.50003, y: -204.95}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 222, y: 398}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &691015019
@ -3304,9 +3304,9 @@ RectTransform:
m_Father: {fileID: 1053959665}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 712.1667, y: -204.95}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 222, y: 398}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1569484610
@ -3457,9 +3457,9 @@ RectTransform:
m_Father: {fileID: 1053959665}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 120.833336, y: -204.95}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 222, y: 398}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1715606638

View File

@ -88,12 +88,7 @@ public class CameraControl : MonoBehaviour
Vector3 cha = m_oneFingerDragStartPos - GetWorldPos(fingerPos);
Vector3 newP = m_cam.transform.position;
newP.x = newP.x + cha.x;
if (newP.x > 17) { newP.x = 17; }
if (newP.x < -10) { newP.x = -10; }
newP.y = newP.y + cha.y;
if (newP.y > 1.4f) { newP.y = 1.4f; }
if (newP.y < 0) { newP.y = 0; }
m_selfTrans.position = newP;
}