scene表json数据修改
This commit is contained in:
parent
f1373939a8
commit
89f66a8b91
@ -7,6 +7,7 @@
|
|||||||
"ObjList": "7001,7002,7003|7001,7003|7001,7002,7003",
|
"ObjList": "7001,7002,7003|7001,7003|7001,7002,7003",
|
||||||
"AreaList": "1012|1013|1014|1015|1017|1018|1019|1020|1021|1022|1023|1024|1025|1026|1027|1028|1029|1030|1076|1031|1032|1033|1034|1036|1037|1038|1039|1040|1041|1077|1078|1079|1080|1081|1082|1083|1084|1085|1086",
|
"AreaList": "1012|1013|1014|1015|1017|1018|1019|1020|1021|1022|1023|1024|1025|1026|1027|1028|1029|1030|1076|1031|1032|1033|1034|1036|1037|1038|1039|1040|1041|1077|1078|1079|1080|1081|1082|1083|1084|1085|1086",
|
||||||
"Storeroom": "1011",
|
"Storeroom": "1011",
|
||||||
|
"TriageArea": "1099",
|
||||||
"ConfigText": "10039|10040|10039"
|
"ConfigText": "10039|10040|10039"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -17,6 +18,7 @@
|
|||||||
"ObjList": "7001,7002,7003|7001,7003|7001,7002,7003",
|
"ObjList": "7001,7002,7003|7001,7003|7001,7002,7003",
|
||||||
"AreaList": "1012|1013|1014|1015|1017|1018|1019|1020|1021|1022|1023|1024|1025|1026|1027|1028|1029|1030|1076|1031|1032|1033|1034|1036|1037|1038|1039|1040|1041|1077|1078|1079|1080|1081|1082|1083|1084|1085|1086",
|
"AreaList": "1012|1013|1014|1015|1017|1018|1019|1020|1021|1022|1023|1024|1025|1026|1027|1028|1029|1030|1076|1031|1032|1033|1034|1036|1037|1038|1039|1040|1041|1077|1078|1079|1080|1081|1082|1083|1084|1085|1086",
|
||||||
"Storeroom": "1011",
|
"Storeroom": "1011",
|
||||||
|
"TriageArea": "1099",
|
||||||
"ConfigText": "20034|20035|20036"
|
"ConfigText": "20034|20035|20036"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -646,6 +646,82 @@ RectTransform:
|
|||||||
m_CorrespondingSourceObject: {fileID: 6740850324693622956, guid: a15ee694d5f79864d816998fae77116d, type: 3}
|
m_CorrespondingSourceObject: {fileID: 6740850324693622956, guid: a15ee694d5f79864d816998fae77116d, type: 3}
|
||||||
m_PrefabInstance: {fileID: 704068456}
|
m_PrefabInstance: {fileID: 704068456}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1 &323893669
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 323893670}
|
||||||
|
- component: {fileID: 323893672}
|
||||||
|
- component: {fileID: 323893671}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Image
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &323893670
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 323893669}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 1120226610}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0.5936, y: 0.2968}
|
||||||
|
m_SizeDelta: {x: 85, y: 85}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &323893671
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 323893669}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 21300000, guid: 7eec63c0b14d7a24a9869a90b839245c, type: 3}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!222 &323893672
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 323893669}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &324885455
|
--- !u!1 &324885455
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -7005,14 +7081,15 @@ RectTransform:
|
|||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children:
|
||||||
|
- {fileID: 323893670}
|
||||||
m_Father: {fileID: 617308872}
|
m_Father: {fileID: 617308872}
|
||||||
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.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 857.8053, y: 382.9524}
|
m_AnchoredPosition: {x: 856.3214, y: 382.9524}
|
||||||
m_SizeDelta: {x: 104.3894, y: 116.0952}
|
m_SizeDelta: {x: 115, y: 115}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!114 &1120226611
|
--- !u!114 &1120226611
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@ -7090,7 +7167,7 @@ MonoBehaviour:
|
|||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_Sprite: {fileID: 21300000, guid: 0e2355f01ff55d14aa4dc0fa4fdae0cb, type: 3}
|
m_Sprite: {fileID: 21300000, guid: b02008df96cdf83469777ece50f69030, type: 3}
|
||||||
m_Type: 0
|
m_Type: 0
|
||||||
m_PreserveAspect: 0
|
m_PreserveAspect: 0
|
||||||
m_FillCenter: 1
|
m_FillCenter: 1
|
||||||
@ -7397,18 +7474,6 @@ MonoBehaviour:
|
|||||||
onValueChanged:
|
onValueChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls:
|
m_Calls:
|
||||||
- m_Target: {fileID: 7468736064579811972}
|
|
||||||
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
|
|
||||||
m_MethodName: SetActive
|
|
||||||
m_Mode: 0
|
|
||||||
m_Arguments:
|
|
||||||
m_ObjectArgument: {fileID: 0}
|
|
||||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
|
||||||
m_IntArgument: 0
|
|
||||||
m_FloatArgument: 0
|
|
||||||
m_StringArgument:
|
|
||||||
m_BoolArgument: 0
|
|
||||||
m_CallState: 2
|
|
||||||
- m_Target: {fileID: 805990075}
|
- m_Target: {fileID: 805990075}
|
||||||
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
|
m_TargetAssemblyTypeName: UnityEngine.GameObject, UnityEngine
|
||||||
m_MethodName: SetActive
|
m_MethodName: SetActive
|
||||||
@ -7433,6 +7498,18 @@ MonoBehaviour:
|
|||||||
m_StringArgument:
|
m_StringArgument:
|
||||||
m_BoolArgument: 0
|
m_BoolArgument: 0
|
||||||
m_CallState: 2
|
m_CallState: 2
|
||||||
|
- m_Target: {fileID: 618256462}
|
||||||
|
m_TargetAssemblyTypeName: Panel, Assembly-CSharp
|
||||||
|
m_MethodName: SetTransfrom
|
||||||
|
m_Mode: 1
|
||||||
|
m_Arguments:
|
||||||
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||||
|
m_IntArgument: 0
|
||||||
|
m_FloatArgument: 0
|
||||||
|
m_StringArgument:
|
||||||
|
m_BoolArgument: 0
|
||||||
|
m_CallState: 2
|
||||||
m_IsOn: 0
|
m_IsOn: 0
|
||||||
--- !u!114 &1194981514
|
--- !u!114 &1194981514
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@ -13510,7 +13587,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
m_AnchoredPosition: {x: 917, y: -343.34674}
|
m_AnchoredPosition: {x: 917, y: -816.70026}
|
||||||
m_SizeDelta: {x: 1834, y: 473.3535}
|
m_SizeDelta: {x: 1834, y: 473.3535}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!224 &5475342653747154700
|
--- !u!224 &5475342653747154700
|
||||||
@ -15853,9 +15930,9 @@ RectTransform:
|
|||||||
m_Father: {fileID: 7468736063934366934}
|
m_Father: {fileID: 7468736063934366934}
|
||||||
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: 1}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 334.1322, y: -55}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 187, y: 110}
|
m_SizeDelta: {x: 187, y: 110}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &7468736064122132329
|
--- !u!1 &7468736064122132329
|
||||||
@ -16136,9 +16213,9 @@ RectTransform:
|
|||||||
m_Father: {fileID: 7468736063934366934}
|
m_Father: {fileID: 7468736063934366934}
|
||||||
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: 1}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 753.3966, y: -55}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 187, y: 110}
|
m_SizeDelta: {x: 187, y: 110}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &7468736064198941274
|
--- !u!1 &7468736064198941274
|
||||||
@ -17380,9 +17457,9 @@ RectTransform:
|
|||||||
m_Father: {fileID: 7468736063934366934}
|
m_Father: {fileID: 7468736063934366934}
|
||||||
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: 1}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 543.7644, y: -55}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 187, y: 110}
|
m_SizeDelta: {x: 187, y: 110}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &7468736064659112359
|
--- !u!1 &7468736064659112359
|
||||||
@ -17748,9 +17825,9 @@ RectTransform:
|
|||||||
m_Father: {fileID: 7468736063934366934}
|
m_Father: {fileID: 7468736063934366934}
|
||||||
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: 1}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 124.5, y: -55}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 187, y: 110}
|
m_SizeDelta: {x: 187, y: 110}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &7468736064820222392
|
--- !u!1 &7468736064820222392
|
||||||
@ -18161,9 +18238,9 @@ RectTransform:
|
|||||||
m_Father: {fileID: 7468736064579811971}
|
m_Father: {fileID: 7468736064579811971}
|
||||||
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: 1}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 917, y: -1328.051}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 1834, y: 498.685}
|
m_SizeDelta: {x: 1834, y: 498.685}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &7468736064937661071
|
--- !u!1 &7468736064937661071
|
||||||
@ -18181,7 +18258,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 0
|
m_IsActive: 1
|
||||||
--- !u!222 &7468736065013593257
|
--- !u!222 &7468736065013593257
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -19417,9 +19494,9 @@ RectTransform:
|
|||||||
m_Father: {fileID: 7468736064579811971}
|
m_Father: {fileID: 7468736064579811971}
|
||||||
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: 917, y: -829.36597}
|
||||||
m_SizeDelta: {x: 1834, y: 498.685}
|
m_SizeDelta: {x: 1834, y: 498.685}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &7468736065836200803
|
--- !u!1 &7468736065836200803
|
||||||
@ -19437,7 +19514,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!114 &8920314133631286993
|
--- !u!114 &8920314133631286993
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -121,27 +121,27 @@ public class Panel : Base
|
|||||||
//动态加载人员
|
//动态加载人员
|
||||||
public async void DynamicLoadingPeople()
|
public async void DynamicLoadingPeople()
|
||||||
{
|
{
|
||||||
//for (int i = 0; i < 10; i++)
|
for (int i = 0; i < 10; i++)
|
||||||
//{
|
|
||||||
// GameObject item = GameObject.Instantiate<GameObject>(peoplePrefab, peopleCountent);
|
|
||||||
// PeopleItem peopleItem = item.GetComponent<PeopleItem>();
|
|
||||||
// peopleItem.nameText.text = "角色1";
|
|
||||||
// peopleItem.peopleId = "0";
|
|
||||||
// Button peoplebutton = item.transform.Find("TextBtn").GetComponent<Button>();
|
|
||||||
// peoplebutton.onClick.AddListener(() => OnPeopleItemClicked(item, Color.yellow, selectedPerson));
|
|
||||||
// peopleList.Add(item);// 将每个实例化的角色添加到列表中
|
|
||||||
//}
|
|
||||||
PlayerListResponse playerListResponse = await userInfo.GetPlayerList();
|
|
||||||
foreach (PlayerListData player in playerListResponse.data)
|
|
||||||
{
|
{
|
||||||
GameObject item = GameObject.Instantiate<GameObject>(peoplePrefab, peopleCountent);
|
GameObject item = GameObject.Instantiate<GameObject>(peoplePrefab, peopleCountent);
|
||||||
PeopleItem peopleItem = item.GetComponent<PeopleItem>();
|
PeopleItem peopleItem = item.GetComponent<PeopleItem>();
|
||||||
peopleItem.nameText.text = player.NickName;
|
peopleItem.nameText.text = "角色1";
|
||||||
peopleItem.peopleId = player.UserId;
|
peopleItem.peopleId = "0";
|
||||||
Button peoplebutton = item.transform.Find("TextBtn").GetComponent<Button>();
|
Button peoplebutton = item.transform.Find("TextBtn").GetComponent<Button>();
|
||||||
peoplebutton.onClick.AddListener(() => OnPeopleItemClicked(item, Color.yellow, selectedPerson));
|
peoplebutton.onClick.AddListener(() => OnPeopleItemClicked(item, Color.yellow, selectedPerson));
|
||||||
peopleList.Add(item);// 将每个实例化的角色添加到列表中
|
peopleList.Add(item);// 将每个实例化的角色添加到列表中
|
||||||
}
|
}
|
||||||
|
//PlayerListResponse playerListResponse = await userInfo.GetPlayerList();
|
||||||
|
//foreach (PlayerListData player in playerListResponse.data)
|
||||||
|
//{
|
||||||
|
// GameObject item = GameObject.Instantiate<GameObject>(peoplePrefab, peopleCountent);
|
||||||
|
// PeopleItem peopleItem = item.GetComponent<PeopleItem>();
|
||||||
|
// peopleItem.nameText.text = player.NickName;
|
||||||
|
// peopleItem.peopleId = player.UserId;
|
||||||
|
// Button peoplebutton = item.transform.Find("TextBtn").GetComponent<Button>();
|
||||||
|
// peoplebutton.onClick.AddListener(() => OnPeopleItemClicked(item, Color.yellow, selectedPerson));
|
||||||
|
// peopleList.Add(item);// 将每个实例化的角色添加到列表中
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
//动态加载职责
|
//动态加载职责
|
||||||
@ -404,67 +404,8 @@ public class Panel : Base
|
|||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
//处理点击确认按钮
|
//处理点击确认按钮
|
||||||
//public void ClickSureBtn()
|
|
||||||
//{
|
|
||||||
// // 只有在选择了人员、职责和场景的情况下,才会执行后续操作
|
|
||||||
// if (isPersonSelected && isDutySelected && isSceneSelected)
|
|
||||||
// {
|
|
||||||
// // 保存选中的人员信息到场景数据字典中
|
|
||||||
// string sceneName = selectedInfo.scene;
|
|
||||||
// // 如果场景字典中没有这个场景,先创建一个空列表
|
|
||||||
// if (!sceneDataDictionary.ContainsKey(sceneName))
|
|
||||||
// {
|
|
||||||
// sceneDataDictionary[sceneName] = new List<SelectedInfo>();
|
|
||||||
// }
|
|
||||||
// // 需要判断是否达到了职责的人员上限
|
|
||||||
// bool isLimitReached = false;
|
|
||||||
// // 获取当前场景中的所有人员信息
|
|
||||||
// List<SelectedInfo> currentSceneInfo = sceneDataDictionary[sceneName];
|
|
||||||
// // 如果选中了“主持人”、“各组长”或“总指挥”,则限制数量为1
|
|
||||||
// if (selectedInfo.duty == "主持人" || selectedInfo.duty == "组长" || selectedInfo.duty == "总指挥")
|
|
||||||
// {
|
|
||||||
// int count = currentSceneInfo.Count(info => info.duty == selectedInfo.duty); // 统计当前职责人数
|
|
||||||
|
|
||||||
// if (count >= 1) // 如果已经有1个此职责的人选
|
|
||||||
// {
|
|
||||||
// isLimitReached = true; // 标记限制已达
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// // 如果没有达到上限,则可以添加人员信息
|
|
||||||
// if (!isLimitReached)
|
|
||||||
// {
|
|
||||||
// // 通过创建一个新的 SelectedInfo 实例来避免引用同一个对象
|
|
||||||
// SelectedInfo newSelectedInfo = new SelectedInfo
|
|
||||||
// {
|
|
||||||
// name = selectedInfo.name,
|
|
||||||
// duty = selectedInfo.duty,
|
|
||||||
// scene = selectedInfo.scene,
|
|
||||||
// dutyId = selectedInfo.dutyId,
|
|
||||||
// sceneId = selectedInfo.sceneId,
|
|
||||||
// peopleId=selectedInfo.peopleId
|
|
||||||
// };
|
|
||||||
|
|
||||||
// // 将当前选中的人员信息添加到对应场景的人员列表中
|
|
||||||
// currentSceneInfo.Add(newSelectedInfo);
|
|
||||||
|
|
||||||
// // 禁用确认按钮并清空选择标志
|
|
||||||
// sureBtn.interactable = false;
|
|
||||||
// ChangeImage(sureBtn.interactable);
|
|
||||||
// isPersonSelected = false;
|
|
||||||
// isDutySelected = false;
|
|
||||||
// isSceneSelected = false;
|
|
||||||
// UploadData(peopleId = selectedInfo.peopleId, selectedInfo.dutyId.ToString(), selectedInfo.sceneId.ToString());
|
|
||||||
// // 改变已添加人员的显示颜色
|
|
||||||
// UpdatePeopleListVisual();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// Debug.LogError("请确保选择了人员、职责和场景!");
|
|
||||||
// }
|
|
||||||
// datePanel.NumberText.text = "共" + (sceneDataDictionary.Keys.Count * sceneDataDictionary.Values.Count).ToString() + "人参与";
|
|
||||||
//}
|
|
||||||
public void ClickSureBtn()
|
public void ClickSureBtn()
|
||||||
{
|
{
|
||||||
// 只有在选择了人员、职责和场景的情况下,才会执行后续操作
|
// 只有在选择了人员、职责和场景的情况下,才会执行后续操作
|
||||||
@ -860,6 +801,13 @@ public class Panel : Base
|
|||||||
public void SetTransfrom()
|
public void SetTransfrom()
|
||||||
{
|
{
|
||||||
transform.gameObject.SetActive(false);
|
transform.gameObject.SetActive(false);
|
||||||
|
selectScenePanel.gameObject.SetActive(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
//判断是否满足最低配置要求
|
||||||
|
public void WhetherToMeet()
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -446,8 +446,11 @@ public class SelectScenePanel : Base
|
|||||||
Debug.LogError("datePanel.disasterLocation" + datePanel.disasterLocation);
|
Debug.LogError("datePanel.disasterLocation" + datePanel.disasterLocation);
|
||||||
SelsctDifficulty();
|
SelsctDifficulty();
|
||||||
SetDataPanelInfo();
|
SetDataPanelInfo();
|
||||||
this.gameObject.SetActive(false);
|
SetPanel();
|
||||||
panel.gameObject.SetActive(true);
|
//transform.gameObject.SetActive(false);
|
||||||
|
//Debug.Log("111111111111111111111111111111");
|
||||||
|
//panel.gameObject.SetActive(true);
|
||||||
|
//Debug.Log("2222222222222222222222222222222");
|
||||||
selectToggle.DefaultToggle();
|
selectToggle.DefaultToggle();
|
||||||
DisableUIInteraction();
|
DisableUIInteraction();
|
||||||
panel.DynamicLoadingPeople();
|
panel.DynamicLoadingPeople();
|
||||||
@ -692,7 +695,12 @@ public class SelectScenePanel : Base
|
|||||||
//½çÃæÉèÖÃ
|
//½çÃæÉèÖÃ
|
||||||
public void SetPanel()
|
public void SetPanel()
|
||||||
{
|
{
|
||||||
gameObject.SetActive(true);
|
if(!transform.gameObject.activeInHierarchy)
|
||||||
panel.gameObject.SetActive(false);
|
{
|
||||||
|
Debug.LogError("++++++++++++++++++++++++++++++");
|
||||||
|
}
|
||||||
|
transform.gameObject.SetActive(false);
|
||||||
|
panel.gameObject.SetActive(true);
|
||||||
|
Debug.Log("111111111111111111111111111111");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user