From e628bf2ddcdfa7b70cfc8717bf7def3ea32848ab Mon Sep 17 00:00:00 2001 From: huyulong <1838407198@qq.com> Date: Mon, 25 Nov 2024 17:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=98=B2=E6=BC=94=E7=BB=83=E5=9C=BA?= =?UTF-8?q?=E6=99=AFUI=E9=80=BB=E8=BE=91=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaofang/Assets/Scenes/Schedule_03.unity | 272 +++++++++--------- xiaofang/Assets/Script/Scheduled_03/Panel.cs | 59 +++- xiaofang/Assets/Script/Scheduled_03/Tags.cs | 10 + .../Assets/Script/Scheduled_03/Tags.cs.meta | 11 + 4 files changed, 217 insertions(+), 135 deletions(-) create mode 100644 xiaofang/Assets/Script/Scheduled_03/Tags.cs create mode 100644 xiaofang/Assets/Script/Scheduled_03/Tags.cs.meta diff --git a/xiaofang/Assets/Scenes/Schedule_03.unity b/xiaofang/Assets/Scenes/Schedule_03.unity index 288d20c8..9ea8e36a 100644 --- a/xiaofang/Assets/Scenes/Schedule_03.unity +++ b/xiaofang/Assets/Scenes/Schedule_03.unity @@ -234,9 +234,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -77.1785} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &70259669 @@ -271,9 +271,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 14 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -699.6056} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &85104306 @@ -594,7 +594,7 @@ GameObject: - component: {fileID: 166583686} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -719,7 +719,7 @@ GameObject: - component: {fileID: 182655375} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Scene m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -924,7 +924,7 @@ GameObject: - component: {fileID: 212442709} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -1049,7 +1049,7 @@ GameObject: - component: {fileID: 260862751} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -1174,7 +1174,7 @@ GameObject: - component: {fileID: 280065647} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -1535,7 +1535,7 @@ GameObject: - component: {fileID: 370583024} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -1660,7 +1660,7 @@ GameObject: - component: {fileID: 375120698} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -1894,9 +1894,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -268.6945} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &437255630 @@ -2153,9 +2153,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -220.81549} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &486064259 @@ -2191,9 +2191,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -507.223} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &501141510 @@ -2210,7 +2210,7 @@ GameObject: - component: {fileID: 501141512} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Scene m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -2613,7 +2613,7 @@ GameObject: - component: {fileID: 537459856} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Scene m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -3025,9 +3025,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 15 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -747.4846} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &596007159 @@ -3215,9 +3215,9 @@ RectTransform: m_Father: {fileID: 666058190} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -148.955} m_SizeDelta: {x: 388.1544, y: 54.782} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &612156437 @@ -3234,7 +3234,7 @@ GameObject: - component: {fileID: 612156439} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -3443,7 +3443,15 @@ MonoBehaviour: peoplePublishBtn: {fileID: 501791465} materialReserveBtn: {fileID: 1516638378} dateSelectionBtn: {fileID: 1474348807} + setName: {fileID: 0} + setDuty: {fileID: 0} + setScene: {fileID: 0} + name: + duty: + scene: sureBtn: {fileID: 1885878473} + raycaster: {fileID: 0} + eventSystem: {fileID: 0} --- !u!1 &625672672 GameObject: m_ObjectHideFlags: 0 @@ -3556,9 +3564,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 13 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -651.72656} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &643616498 @@ -3633,9 +3641,9 @@ RectTransform: m_Father: {fileID: 666058190} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -331.301} m_SizeDelta: {x: 388.1544, y: 54.782} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &666058189 @@ -3850,9 +3858,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -146.935} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &697546171 @@ -3887,9 +3895,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 12 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -603.84753} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &709540181 @@ -3906,7 +3914,7 @@ GameObject: - component: {fileID: 709540183} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -4031,7 +4039,7 @@ GameObject: - component: {fileID: 719100452} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -4175,9 +4183,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -86.887} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &758636159 @@ -4194,7 +4202,7 @@ GameObject: - component: {fileID: 758636161} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Scene m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -4319,7 +4327,7 @@ GameObject: - component: {fileID: 767145316} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -4504,9 +4512,9 @@ RectTransform: m_Father: {fileID: 666058190} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -27.391} m_SizeDelta: {x: 388.1544, y: 54.782} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &800439078 @@ -5056,7 +5064,7 @@ GameObject: - component: {fileID: 893581565} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Scene m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -5181,7 +5189,7 @@ GameObject: - component: {fileID: 906969217} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Scene m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -5408,9 +5416,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -125.057495} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &915498361 @@ -5445,9 +5453,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -412.33148} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &920236442 @@ -5464,7 +5472,7 @@ GameObject: - component: {fileID: 920236444} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -5608,9 +5616,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -387.12698} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &969942584 @@ -5627,7 +5635,7 @@ GameObject: - component: {fileID: 969942586} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -5828,7 +5836,7 @@ GameObject: - component: {fileID: 982435956} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Scene m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -5953,7 +5961,7 @@ GameObject: - component: {fileID: 984928705} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -6096,9 +6104,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 11 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -555.9685} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1024742103 @@ -6373,9 +6381,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -364.45248} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1064920678 @@ -6411,9 +6419,9 @@ RectTransform: m_Father: {fileID: 666058190} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -270.519} m_SizeDelta: {x: 388.1544, y: 54.782} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1071409070 @@ -6548,7 +6556,7 @@ GameObject: - component: {fileID: 1138535239} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -6673,7 +6681,7 @@ GameObject: - component: {fileID: 1147640443} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -6798,7 +6806,7 @@ GameObject: - component: {fileID: 1162256839} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -6923,7 +6931,7 @@ GameObject: - component: {fileID: 1174008766} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -7680,9 +7688,9 @@ RectTransform: m_Father: {fileID: 666058190} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -392.083} m_SizeDelta: {x: 388.1544, y: 54.782} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1295805949 @@ -7717,9 +7725,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -172.9365} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1299096198 @@ -8125,9 +8133,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 9 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -460.21048} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1365202594 @@ -8144,7 +8152,7 @@ GameObject: - component: {fileID: 1365202596} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -8345,7 +8353,7 @@ GameObject: - component: {fileID: 1373781686} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -8957,7 +8965,7 @@ GameObject: - component: {fileID: 1522177270} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -9101,9 +9109,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -206.983} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1545028326 @@ -9120,7 +9128,7 @@ GameObject: - component: {fileID: 1545028328} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -9245,7 +9253,7 @@ GameObject: - component: {fileID: 1557477816} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -9711,9 +9719,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -267.031} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1600693805 @@ -9826,9 +9834,9 @@ RectTransform: m_Father: {fileID: 666058190} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -209.73701} m_SizeDelta: {x: 388.1544, y: 54.782} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1646552233 @@ -9864,9 +9872,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 9 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -567.271} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1666756050 @@ -9883,7 +9891,7 @@ GameObject: - component: {fileID: 1666756052} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -10121,9 +10129,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -327.07898} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1694829370 @@ -10239,9 +10247,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 10 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -508.08948} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1760202389 @@ -10277,9 +10285,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -26.839} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1764460408 @@ -10372,7 +10380,7 @@ GameObject: - component: {fileID: 1768232489} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -10535,7 +10543,7 @@ GameObject: - component: {fileID: 1786315567} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: Duty m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -10835,9 +10843,9 @@ RectTransform: m_Father: {fileID: 666058190} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -88.173004} m_SizeDelta: {x: 388.1544, y: 54.782} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1879172589 @@ -11146,9 +11154,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -29.2995} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1933500136 @@ -11809,9 +11817,9 @@ RectTransform: m_Father: {fileID: 667280287} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -316.5735} m_SizeDelta: {x: 388.1544, y: 58.599} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &2039298473 @@ -11927,9 +11935,9 @@ RectTransform: m_Father: {fileID: 1034927193} m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 194.0772, y: -447.175} m_SizeDelta: {x: 388.1544, y: 53.678} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &2041460956 @@ -11946,7 +11954,7 @@ GameObject: - component: {fileID: 2041460958} m_Layer: 5 m_Name: Text (Legacy) - m_TagString: Untagged + m_TagString: People m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 diff --git a/xiaofang/Assets/Script/Scheduled_03/Panel.cs b/xiaofang/Assets/Script/Scheduled_03/Panel.cs index 976db8fa..aa3c9c82 100644 --- a/xiaofang/Assets/Script/Scheduled_03/Panel.cs +++ b/xiaofang/Assets/Script/Scheduled_03/Panel.cs @@ -1,9 +1,13 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; +using UnityEngine.EventSystems; using UnityEngine.SceneManagement; using UnityEngine.UI; + + + public class Panel : MonoBehaviour { public Button choseJuBenSettingBtn; @@ -12,20 +16,40 @@ public class Panel : MonoBehaviour public Button materialReserveBtn; public Button dateSelectionBtn; - + public Button setName;//设置人员 + public Button setDuty;//设置职责 + public Button setScene;//设置场景 - public Text name; + public string name, duty, scene; public Button sureBtn;//确认信息按钮 + public GraphicRaycaster raycaster; // 画布上的射线投射器 + public EventSystem eventSystem; // 事件系统 // Start is called before the first frame update void Start() { } + public void SetName() + { + + } + + public void SetDuty() + { + + } + + public void SetScene() + { + + } + + //处理点击选择剧本按钮 public void ClickChoseJuBenSettingBtn() { @@ -78,6 +102,35 @@ public class Panel : MonoBehaviour // Update is called once per frame void Update() { - + // 当鼠标左键按下时进行检测 + if (Input.GetMouseButtonDown(0)) + { + // 创建PointerEventData来记录点击事件的数据 + PointerEventData pointerData = new PointerEventData(eventSystem); + pointerData.position = Input.mousePosition; + + // 用于存储射线检测的结果 + List results = new List(); + raycaster.Raycast(pointerData, results); + + // 遍历射线检测的结果 + foreach (RaycastResult result in results) + { + // 检测到点击了按钮 + Button clickedButton = result.gameObject.GetComponent