From 887c2f1b5e231f4028921b48199f345d4a296022 Mon Sep 17 00:00:00 2001 From: liuliang <597380732@qq.com> Date: Sat, 16 Nov 2024 17:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E5=A5=96=E6=8F=90=E7=8E=B0UI=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E5=BC=B9=E7=AA=97=E7=9A=84=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../preform/gui/lingjiangtixian.prefab | 15 +- meng_yao/Assets/Scenes/scene_Main.unity | 303 ++++++++++++++---- .../script/TanChuang/Lingjiang_Tanchuang.cs | 39 +++ .../TanChuang/Lingjiang_Tanchuang.cs.meta | 11 + 4 files changed, 289 insertions(+), 79 deletions(-) create mode 100644 meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs create mode 100644 meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs.meta diff --git a/meng_yao/Assets/Resources/preform/gui/lingjiangtixian.prefab b/meng_yao/Assets/Resources/preform/gui/lingjiangtixian.prefab index 4bc7d9a6b..20981e475 100644 --- a/meng_yao/Assets/Resources/preform/gui/lingjiangtixian.prefab +++ b/meng_yao/Assets/Resources/preform/gui/lingjiangtixian.prefab @@ -486,14 +486,13 @@ GameObject: - component: {fileID: 6931136036260294093} - component: {fileID: 6931136036260294095} - component: {fileID: 6931136036260294092} - - component: {fileID: 1553952866} m_Layer: 5 m_Name: lingjiangtixian m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &6931136036260294093 RectTransform: m_ObjectHideFlags: 0 @@ -554,18 +553,6 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 ---- !u!114 &1553952866 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6931136036260294082} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 86df4d3ef823af3479e6419f207e7aa0, type: 3} - m_Name: - m_EditorClassIdentifier: --- !u!1 &6931136036319057909 GameObject: m_ObjectHideFlags: 0 diff --git a/meng_yao/Assets/Scenes/scene_Main.unity b/meng_yao/Assets/Scenes/scene_Main.unity index 406c9cab2..fbaf5d56c 100644 --- a/meng_yao/Assets/Scenes/scene_Main.unity +++ b/meng_yao/Assets/Scenes/scene_Main.unity @@ -11261,7 +11261,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0.017708335} - m_AnchoredPosition: {x: 0, y: -1} + m_AnchoredPosition: {x: 0, y: 3} m_SizeDelta: {x: 0, y: 1} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &192920257 @@ -13974,7 +13974,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8631885451795898585, guid: 638b7f7423db411419568d073208d929, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 8631885451795898585, guid: 638b7f7423db411419568d073208d929, type: 3} propertyPath: m_AnchorMin.x @@ -13982,7 +13982,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8631885451795898585, guid: 638b7f7423db411419568d073208d929, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 8631885451795898585, guid: 638b7f7423db411419568d073208d929, type: 3} propertyPath: m_SizeDelta.x @@ -14022,11 +14022,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8631885451795898585, guid: 638b7f7423db411419568d073208d929, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 164.76596 objectReference: {fileID: 0} - target: {fileID: 8631885451795898585, guid: 638b7f7423db411419568d073208d929, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -91.81842 objectReference: {fileID: 0} - target: {fileID: 8631885451795898585, guid: 638b7f7423db411419568d073208d929, type: 3} propertyPath: m_LocalEulerAnglesHint.x @@ -23065,7 +23065,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!4 &426100837 Transform: m_ObjectHideFlags: 0 @@ -26236,19 +26236,19 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1477323884974716171, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323884974716171, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323884974716171, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.x - value: 74 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323884974716171, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.y - value: -64 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323884977120182, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.x @@ -26284,19 +26284,19 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1477323885563993957, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323885563993957, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323885563993957, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.x - value: 74 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323885563993957, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.y - value: -209.7 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323885632734217, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_Spacing @@ -26310,6 +26310,38 @@ PrefabInstance: propertyPath: m_Spacing value: 44.25 objectReference: {fileID: 0} + - target: {fileID: 1477323886334800504, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1477323886334800504, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 1477323886334800504, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target + value: + objectReference: {fileID: 1964742057} + - target: {fileID: 1477323886334800504, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 1477323886334800504, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName + value: SetActive + objectReference: {fileID: 0} + - target: {fileID: 1477323886334800504, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName + value: UnityEngine.GameObject, UnityEngine + objectReference: {fileID: 0} + - target: {fileID: 1477323886334800504, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_BoolArgument + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1477323886334800504, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} + propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName + value: UnityEngine.Object, UnityEngine + objectReference: {fileID: 0} - target: {fileID: 1477323886558971921, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.x value: -11.000427 @@ -26324,35 +26356,35 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1477323886964138199, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323886964138199, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323886964138199, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.x - value: 74 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323886964138199, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.y - value: -208.25 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323886995771016, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323886995771016, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323886995771016, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.x - value: 74 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1477323886995771016, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_AnchoredPosition.y - value: -64 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1682967232100905454, guid: aa401e2ce6d8c5847a9a32a4ac92f0f0, type: 3} propertyPath: m_Pivot.x @@ -39789,7 +39821,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!4 &821513633 Transform: m_ObjectHideFlags: 0 @@ -43028,6 +43060,7 @@ RectTransform: - {fileID: 626334609} - {fileID: 6291352156879861185} - {fileID: 350671369} + - {fileID: 1964742056} m_Father: {fileID: 0} m_RootOrder: 14 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -45606,7 +45639,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3229315116778200709, guid: c5e8245d9cbdb3e4087ffdb8a6161e5a, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 3229315116778200709, guid: c5e8245d9cbdb3e4087ffdb8a6161e5a, type: 3} propertyPath: m_AnchorMin.x @@ -45614,7 +45647,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3229315116778200709, guid: c5e8245d9cbdb3e4087ffdb8a6161e5a, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 3229315116778200709, guid: c5e8245d9cbdb3e4087ffdb8a6161e5a, type: 3} propertyPath: m_SizeDelta.x @@ -45654,11 +45687,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3229315116778200709, guid: c5e8245d9cbdb3e4087ffdb8a6161e5a, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: -182.82126 objectReference: {fileID: 0} - target: {fileID: 3229315116778200709, guid: c5e8245d9cbdb3e4087ffdb8a6161e5a, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -302.28784 objectReference: {fileID: 0} - target: {fileID: 3229315116778200709, guid: c5e8245d9cbdb3e4087ffdb8a6161e5a, type: 3} propertyPath: m_LocalEulerAnglesHint.x @@ -47714,7 +47747,7 @@ MonoBehaviour: probabilityOfStand: 0.2 probabilityOfWalk: 0.3 probabilityOfDig: 0.5 - fishManPrefab: {fileID: 5560367099341029388, guid: 28ba78761ca85a84cb4b1ae0662de238, type: 3} + fishManPrefab: {fileID: 5560367099341029388, guid: 063f67cf588dcdf42b6a36a51d2b0424, type: 3} listItem: [] startPos: {fileID: 1236277005} endPos: {fileID: 269457286} @@ -49311,9 +49344,9 @@ RectTransform: m_Father: {fileID: 227985944} 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: 74, y: -352.5} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1067161157 @@ -52319,7 +52352,7 @@ MonoBehaviour: probabilityOfStand: 0.2 probabilityOfWalk: 0.3 probabilityOfDig: 0.5 - fishManPrefab: {fileID: 5560367099341029388, guid: 28ba78761ca85a84cb4b1ae0662de238, type: 3} + fishManPrefab: {fileID: 5560367099341029388, guid: ef855cb16f90bc94f94687d04b87de2d, type: 3} listItem: [] startPos: {fileID: 598378602} endPos: {fileID: 1849394495} @@ -60611,7 +60644,7 @@ MonoBehaviour: probabilityOfStand: 0.2 probabilityOfWalk: 0.3 probabilityOfDig: 0.5 - fishManPrefab: {fileID: 5560367099341029388, guid: 28ba78761ca85a84cb4b1ae0662de238, type: 3} + fishManPrefab: {fileID: 5560367099341029388, guid: daa63d516e730ae43ac25bd4f24d9d2b, type: 3} listItem: [] startPos: {fileID: 1759863220} endPos: {fileID: 2142668175} @@ -66066,6 +66099,17 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1508365954} m_CullTransparentMesh: 1 +--- !u!114 &1509367694 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 7760691271716697173, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + m_PrefabInstance: {fileID: 1964742055} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &1511873835 GameObject: m_ObjectHideFlags: 0 @@ -67646,19 +67690,19 @@ PrefabInstance: objectReference: {fileID: 426100836} - target: {fileID: 2278414502042200660, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502042200660, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502042200660, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.x - value: 50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502042200660, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.y - value: -109 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502376877128, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_IsActive @@ -67666,51 +67710,51 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 2278414502443881119, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502443881119, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502443881119, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.x - value: 266.89 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502443881119, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.y - value: -109 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502666870844, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502666870844, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502666870844, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.x - value: 483.78 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502666870844, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.y - value: -109 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502728653940, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502728653940, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502728653940, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.x - value: 700.67 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502728653940, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.y - value: -109 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502826152887, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_IsActive @@ -67722,19 +67766,19 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 2278414502908617433, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502908617433, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502908617433, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.x - value: 917.56 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414502908617433, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_AnchoredPosition.y - value: -109 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2278414503729634016, guid: 51fb8da1c1df4d14585a5f5bb1a088b7, type: 3} propertyPath: m_IsActive @@ -77638,19 +77682,19 @@ PrefabInstance: objectReference: {fileID: 21300000, guid: 3987eea29d3d1e74c9b5a8917835d83e, type: 3} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 284 objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -43 objectReference: {fileID: 0} - target: {fileID: 4284489241791779467, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_IsActive @@ -77682,19 +77726,19 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4284489242025471101, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4284489242025471101, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4284489242025471101, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 428 objectReference: {fileID: 0} - target: {fileID: 4284489242025471101, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -43 objectReference: {fileID: 0} - target: {fileID: 4284489242231924292, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_IsActive @@ -80115,7 +80159,7 @@ MonoBehaviour: probabilityOfStand: 0.2 probabilityOfWalk: 0.3 probabilityOfDig: 0.5 - fishManPrefab: {fileID: 5560367099341029388, guid: 28ba78761ca85a84cb4b1ae0662de238, type: 3} + fishManPrefab: {fileID: 5560367099341029388, guid: 4633cc3716344024d9cd423f222229b6, type: 3} listItem: [] startPos: {fileID: 234699573} endPos: {fileID: 1651778199} @@ -87788,6 +87832,135 @@ MeshRenderer: m_SortingLayer: 0 m_SortingOrder: 0 m_AdditionalVertexStreams: {fileID: 0} +--- !u!1001 &1964742055 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 914645750} + m_Modifications: + - target: {fileID: 6236399521263300600, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_Name + value: Txbtn + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294082, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_Name + value: lingjiangtixian + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294082, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_RootOrder + value: 14 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_AnchorMin.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} +--- !u!224 &1964742056 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 6931136036260294093, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + m_PrefabInstance: {fileID: 1964742055} + m_PrefabAsset: {fileID: 0} +--- !u!1 &1964742057 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 6931136036260294082, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + m_PrefabInstance: {fileID: 1964742055} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1964742061 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1964742057} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 33fad0f4d4a75c5468a42ecfd1496d3c, type: 3} + m_Name: + m_EditorClassIdentifier: + Kfbtn: {fileID: 1509367694} + canvas: {fileID: 914645750} --- !u!1 &1966727577 GameObject: m_ObjectHideFlags: 0 @@ -91781,9 +91954,9 @@ RectTransform: m_Father: {fileID: 510923632} 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: 74, y: -355.4} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &2052803294 diff --git a/meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs b/meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs new file mode 100644 index 000000000..797b26f59 --- /dev/null +++ b/meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs @@ -0,0 +1,39 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; +public class Lingjiang_Tanchuang : mount +{ + public Button Kfbtn; + public Transform canvas; + // Start is called before the first frame update + void Start() + { + Kfbtn.onClick.AddListener(Display_pop_up_window); + } + + + private void Display_pop_up_window() + { + + + List boxTypes = new List(); + boxTypes.Add(new BoxType { Name = "", prompt = "", Type = 13, content = "未绑定支付宝" }); + boxTypes.Add(new BoxType { Name = "", prompt = "", Type = 11 }); + GameObject gameObject = add_pop_up(); + gameObject.transform.position = new Vector3(Screen.width / 2, Screen.height / 2, 0); + gameObject.transform.SetParent(canvas); + gameObject.GetComponent().minHeight = 300;//设置最低高度 + gameObject.GetComponent().setScrollMode(0);//设置滚动模式为滚动 + //gameObject.GetComponent().setScrollMode(0);//设置滚动模式为自动填充 + List gameObjects = gameObject.GetComponent().updateUI(boxTypes, "绑定提示");//测试输入框回调处理 + gameObjects[1].GetComponent().register_click(async (BoxType boxType, int type) =>//登录确定或取消 + { + if (type == 1) + { + gameObject.GetComponent().destroy(); + } + }); + } + // Update is called once per frame +} diff --git a/meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs.meta b/meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs.meta new file mode 100644 index 000000000..28e1fcf53 --- /dev/null +++ b/meng_yao/Assets/script/TanChuang/Lingjiang_Tanchuang.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 33fad0f4d4a75c5468a42ecfd1496d3c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: