消防演练场景UI逻辑代码

This commit is contained in:
huyulong 2024-11-25 17:16:41 +08:00
parent a63041a426
commit e628bf2ddc
4 changed files with 217 additions and 135 deletions

View File

@ -234,9 +234,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -77.1785}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &70259669 --- !u!1 &70259669
@ -271,9 +271,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 14 m_RootOrder: 14
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -699.6056}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &85104306 --- !u!1 &85104306
@ -594,7 +594,7 @@ GameObject:
- component: {fileID: 166583686} - component: {fileID: 166583686}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -719,7 +719,7 @@ GameObject:
- component: {fileID: 182655375} - component: {fileID: 182655375}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Scene
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -924,7 +924,7 @@ GameObject:
- component: {fileID: 212442709} - component: {fileID: 212442709}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -1049,7 +1049,7 @@ GameObject:
- component: {fileID: 260862751} - component: {fileID: 260862751}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -1174,7 +1174,7 @@ GameObject:
- component: {fileID: 280065647} - component: {fileID: 280065647}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -1535,7 +1535,7 @@ GameObject:
- component: {fileID: 370583024} - component: {fileID: 370583024}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -1660,7 +1660,7 @@ GameObject:
- component: {fileID: 375120698} - component: {fileID: 375120698}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -1894,9 +1894,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 5 m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -268.6945}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &437255630 --- !u!1 &437255630
@ -2153,9 +2153,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 4 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -220.81549}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &486064259 --- !u!1 &486064259
@ -2191,9 +2191,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 8 m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -507.223}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &501141510 --- !u!1 &501141510
@ -2210,7 +2210,7 @@ GameObject:
- component: {fileID: 501141512} - component: {fileID: 501141512}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Scene
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -2613,7 +2613,7 @@ GameObject:
- component: {fileID: 537459856} - component: {fileID: 537459856}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Scene
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -3025,9 +3025,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 15 m_RootOrder: 15
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -747.4846}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &596007159 --- !u!1 &596007159
@ -3215,9 +3215,9 @@ RectTransform:
m_Father: {fileID: 666058190} m_Father: {fileID: 666058190}
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -148.955}
m_SizeDelta: {x: 388.1544, y: 54.782} m_SizeDelta: {x: 388.1544, y: 54.782}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &612156437 --- !u!1 &612156437
@ -3234,7 +3234,7 @@ GameObject:
- component: {fileID: 612156439} - component: {fileID: 612156439}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -3443,7 +3443,15 @@ MonoBehaviour:
peoplePublishBtn: {fileID: 501791465} peoplePublishBtn: {fileID: 501791465}
materialReserveBtn: {fileID: 1516638378} materialReserveBtn: {fileID: 1516638378}
dateSelectionBtn: {fileID: 1474348807} dateSelectionBtn: {fileID: 1474348807}
setName: {fileID: 0}
setDuty: {fileID: 0}
setScene: {fileID: 0}
name:
duty:
scene:
sureBtn: {fileID: 1885878473} sureBtn: {fileID: 1885878473}
raycaster: {fileID: 0}
eventSystem: {fileID: 0}
--- !u!1 &625672672 --- !u!1 &625672672
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -3556,9 +3564,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 13 m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -651.72656}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &643616498 --- !u!1 &643616498
@ -3633,9 +3641,9 @@ RectTransform:
m_Father: {fileID: 666058190} m_Father: {fileID: 666058190}
m_RootOrder: 5 m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -331.301}
m_SizeDelta: {x: 388.1544, y: 54.782} m_SizeDelta: {x: 388.1544, y: 54.782}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &666058189 --- !u!1 &666058189
@ -3850,9 +3858,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -146.935}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &697546171 --- !u!1 &697546171
@ -3887,9 +3895,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 12 m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -603.84753}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &709540181 --- !u!1 &709540181
@ -3906,7 +3914,7 @@ GameObject:
- component: {fileID: 709540183} - component: {fileID: 709540183}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -4031,7 +4039,7 @@ GameObject:
- component: {fileID: 719100452} - component: {fileID: 719100452}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -4175,9 +4183,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -86.887}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &758636159 --- !u!1 &758636159
@ -4194,7 +4202,7 @@ GameObject:
- component: {fileID: 758636161} - component: {fileID: 758636161}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Scene
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -4319,7 +4327,7 @@ GameObject:
- component: {fileID: 767145316} - component: {fileID: 767145316}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -4504,9 +4512,9 @@ RectTransform:
m_Father: {fileID: 666058190} m_Father: {fileID: 666058190}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -27.391}
m_SizeDelta: {x: 388.1544, y: 54.782} m_SizeDelta: {x: 388.1544, y: 54.782}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &800439078 --- !u!1 &800439078
@ -5056,7 +5064,7 @@ GameObject:
- component: {fileID: 893581565} - component: {fileID: 893581565}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Scene
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -5181,7 +5189,7 @@ GameObject:
- component: {fileID: 906969217} - component: {fileID: 906969217}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Scene
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -5408,9 +5416,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -125.057495}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &915498361 --- !u!1 &915498361
@ -5445,9 +5453,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 8 m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -412.33148}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &920236442 --- !u!1 &920236442
@ -5464,7 +5472,7 @@ GameObject:
- component: {fileID: 920236444} - component: {fileID: 920236444}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -5608,9 +5616,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 6 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -387.12698}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &969942584 --- !u!1 &969942584
@ -5627,7 +5635,7 @@ GameObject:
- component: {fileID: 969942586} - component: {fileID: 969942586}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -5828,7 +5836,7 @@ GameObject:
- component: {fileID: 982435956} - component: {fileID: 982435956}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Scene
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -5953,7 +5961,7 @@ GameObject:
- component: {fileID: 984928705} - component: {fileID: 984928705}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -6096,9 +6104,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 11 m_RootOrder: 11
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -555.9685}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1024742103 --- !u!1 &1024742103
@ -6373,9 +6381,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 7 m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -364.45248}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1064920678 --- !u!1 &1064920678
@ -6411,9 +6419,9 @@ RectTransform:
m_Father: {fileID: 666058190} m_Father: {fileID: 666058190}
m_RootOrder: 4 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -270.519}
m_SizeDelta: {x: 388.1544, y: 54.782} m_SizeDelta: {x: 388.1544, y: 54.782}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1071409070 --- !u!1 &1071409070
@ -6548,7 +6556,7 @@ GameObject:
- component: {fileID: 1138535239} - component: {fileID: 1138535239}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -6673,7 +6681,7 @@ GameObject:
- component: {fileID: 1147640443} - component: {fileID: 1147640443}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -6798,7 +6806,7 @@ GameObject:
- component: {fileID: 1162256839} - component: {fileID: 1162256839}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -6923,7 +6931,7 @@ GameObject:
- component: {fileID: 1174008766} - component: {fileID: 1174008766}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -7680,9 +7688,9 @@ RectTransform:
m_Father: {fileID: 666058190} m_Father: {fileID: 666058190}
m_RootOrder: 6 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -392.083}
m_SizeDelta: {x: 388.1544, y: 54.782} m_SizeDelta: {x: 388.1544, y: 54.782}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1295805949 --- !u!1 &1295805949
@ -7717,9 +7725,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 3 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -172.9365}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1299096198 --- !u!1 &1299096198
@ -8125,9 +8133,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 9 m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -460.21048}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1365202594 --- !u!1 &1365202594
@ -8144,7 +8152,7 @@ GameObject:
- component: {fileID: 1365202596} - component: {fileID: 1365202596}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -8345,7 +8353,7 @@ GameObject:
- component: {fileID: 1373781686} - component: {fileID: 1373781686}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -8957,7 +8965,7 @@ GameObject:
- component: {fileID: 1522177270} - component: {fileID: 1522177270}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -9101,9 +9109,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 3 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -206.983}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1545028326 --- !u!1 &1545028326
@ -9120,7 +9128,7 @@ GameObject:
- component: {fileID: 1545028328} - component: {fileID: 1545028328}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -9245,7 +9253,7 @@ GameObject:
- component: {fileID: 1557477816} - component: {fileID: 1557477816}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -9711,9 +9719,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 4 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -267.031}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1600693805 --- !u!1 &1600693805
@ -9826,9 +9834,9 @@ RectTransform:
m_Father: {fileID: 666058190} m_Father: {fileID: 666058190}
m_RootOrder: 3 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -209.73701}
m_SizeDelta: {x: 388.1544, y: 54.782} m_SizeDelta: {x: 388.1544, y: 54.782}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1646552233 --- !u!1 &1646552233
@ -9864,9 +9872,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 9 m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -567.271}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1666756050 --- !u!1 &1666756050
@ -9883,7 +9891,7 @@ GameObject:
- component: {fileID: 1666756052} - component: {fileID: 1666756052}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -10121,9 +10129,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 5 m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -327.07898}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1694829370 --- !u!1 &1694829370
@ -10239,9 +10247,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 10 m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -508.08948}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1760202389 --- !u!1 &1760202389
@ -10277,9 +10285,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -26.839}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1764460408 --- !u!1 &1764460408
@ -10372,7 +10380,7 @@ GameObject:
- component: {fileID: 1768232489} - component: {fileID: 1768232489}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -10535,7 +10543,7 @@ GameObject:
- component: {fileID: 1786315567} - component: {fileID: 1786315567}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: Duty
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
@ -10835,9 +10843,9 @@ RectTransform:
m_Father: {fileID: 666058190} m_Father: {fileID: 666058190}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -88.173004}
m_SizeDelta: {x: 388.1544, y: 54.782} m_SizeDelta: {x: 388.1544, y: 54.782}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1879172589 --- !u!1 &1879172589
@ -11146,9 +11154,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -29.2995}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1933500136 --- !u!1 &1933500136
@ -11809,9 +11817,9 @@ RectTransform:
m_Father: {fileID: 667280287} m_Father: {fileID: 667280287}
m_RootOrder: 6 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -316.5735}
m_SizeDelta: {x: 388.1544, y: 58.599} m_SizeDelta: {x: 388.1544, y: 58.599}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &2039298473 --- !u!1 &2039298473
@ -11927,9 +11935,9 @@ RectTransform:
m_Father: {fileID: 1034927193} m_Father: {fileID: 1034927193}
m_RootOrder: 7 m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 194.0772, y: -447.175}
m_SizeDelta: {x: 388.1544, y: 53.678} m_SizeDelta: {x: 388.1544, y: 53.678}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &2041460956 --- !u!1 &2041460956
@ -11946,7 +11954,7 @@ GameObject:
- component: {fileID: 2041460958} - component: {fileID: 2041460958}
m_Layer: 5 m_Layer: 5
m_Name: Text (Legacy) m_Name: Text (Legacy)
m_TagString: Untagged m_TagString: People
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0

View File

@ -1,9 +1,13 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
using UnityEngine.UI; using UnityEngine.UI;
public class Panel : MonoBehaviour public class Panel : MonoBehaviour
{ {
public Button choseJuBenSettingBtn; public Button choseJuBenSettingBtn;
@ -13,19 +17,39 @@ public class Panel : MonoBehaviour
public Button dateSelectionBtn; public Button dateSelectionBtn;
public Button setName;//设置人员
public Button setDuty;//设置职责
public Button setScene;//设置场景
public string name, duty, scene;
public Text name;
public Button sureBtn;//确认信息按钮 public Button sureBtn;//确认信息按钮
public GraphicRaycaster raycaster; // 画布上的射线投射器
public EventSystem eventSystem; // 事件系统
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
} }
public void SetName()
{
}
public void SetDuty()
{
}
public void SetScene()
{
}
//处理点击选择剧本按钮 //处理点击选择剧本按钮
public void ClickChoseJuBenSettingBtn() public void ClickChoseJuBenSettingBtn()
{ {
@ -78,6 +102,35 @@ public class Panel : MonoBehaviour
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
// 当鼠标左键按下时进行检测
if (Input.GetMouseButtonDown(0))
{
// 创建PointerEventData来记录点击事件的数据
PointerEventData pointerData = new PointerEventData(eventSystem);
pointerData.position = Input.mousePosition;
// 用于存储射线检测的结果
List<RaycastResult> results = new List<RaycastResult>();
raycaster.Raycast(pointerData, results);
// 遍历射线检测的结果
foreach (RaycastResult result in results)
{
// 检测到点击了按钮
Button clickedButton = result.gameObject.GetComponent<Button>();
if (clickedButton != null)
{
// 获取按钮上Text组件的文本内容并赋值给目标Text组件
Text buttonText = clickedButton.GetComponentInChildren<Text>();
if (buttonText != null && clickedButton.tag == Tags.people)
{
name = buttonText.text;
Debug.Log(name);
} }
} }
}
}
}
}

View File

@ -0,0 +1,10 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Tags
{
public const string people = "People";
public const string duty = "Duty";
public const string scene = "Scene";
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6d8b5c6a51cea874188bf7aac135cea5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: