From 366d45c251b46f42e801dcf509061da35d2d1993 Mon Sep 17 00:00:00 2001 From: taosuqi <2274240467@qq.com> Date: Sat, 7 Feb 2026 09:09:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/UIPanel/UI_RoamingPanel.cs | 72 ++- Assets/Scripts/UI/UIPanel/UI_TopTitlePanel.cs | 2 + Assets/StreamingAssets/WireData.json | 543 +----------------- 3 files changed, 68 insertions(+), 549 deletions(-) diff --git a/Assets/Scripts/UI/UIPanel/UI_RoamingPanel.cs b/Assets/Scripts/UI/UIPanel/UI_RoamingPanel.cs index a391fbe..c2f19ff 100644 --- a/Assets/Scripts/UI/UIPanel/UI_RoamingPanel.cs +++ b/Assets/Scripts/UI/UIPanel/UI_RoamingPanel.cs @@ -1,18 +1,76 @@ using System.Collections; using System.Collections.Generic; +using TMPro; using UnityEngine; +using DG.Tweening; -public class UI_RoamingPanel : MonoBehaviour +public class UI_RoamingPanel : BasePanel { - // Start is called before the first frame update - void Start() + private CanvasGroup canvasGroup; //屏幕显示 + protected override void Awake() { - + base.Awake(); + OnInit(); } - // Update is called once per frame - void Update() + public void OnInit() { - + canvasGroup = GetComponent(); + canvasGroup.interactable = false; + canvasGroup.blocksRaycasts = false; + } + + public override void ShowMe() + { + base.ShowMe(); + FadeIn(0.5f); + StopAllCoroutines(); + StartCoroutine(RoamingIE()); + } + + public override void HideMe() + { + base.HideMe(); + FadeOut(0.5f); + } + protected override void OnClick(string btnPath) + { + base.OnClick(btnPath); + switch (btnPath) + { + case "左侧大按钮": + FadeOut(0.5f); + break; + } + } + + /// + /// 漫游 + /// + /// + private IEnumerator RoamingIE() + { + yield return new WaitForSeconds(1f); + + } + + /// + /// 提问渐显 + /// + public void FadeIn(float time) + { + canvasGroup.DOFade(1f, time); + canvasGroup.interactable = true; + canvasGroup.blocksRaycasts = true; + } + + /// + /// 提问渐隐 + /// + public void FadeOut(float time) + { + canvasGroup.DOFade(0f, time); + canvasGroup.interactable = false; + canvasGroup.blocksRaycasts = false; } } diff --git a/Assets/Scripts/UI/UIPanel/UI_TopTitlePanel.cs b/Assets/Scripts/UI/UIPanel/UI_TopTitlePanel.cs index e198a2f..3679aac 100644 --- a/Assets/Scripts/UI/UIPanel/UI_TopTitlePanel.cs +++ b/Assets/Scripts/UI/UIPanel/UI_TopTitlePanel.cs @@ -123,6 +123,8 @@ public class UI_TopTitlePanel : BasePanel Bootstrap.Instance.uiManager.ShowPanel(this, E_UI_Layer.Top, (panel) => { Bootstrap.Instance.uiManager.HidePanel(); + Bootstrap.Instance.uiManager.HidePanel< UI_TopTipPanel>(); + Bootstrap.Instance.uiManager.HidePanel< UI_ExperimentChooesPanel>(); Debug.Log("场景加载成功"); }); }); diff --git a/Assets/StreamingAssets/WireData.json b/Assets/StreamingAssets/WireData.json index 4737678..2f1643b 100644 --- a/Assets/StreamingAssets/WireData.json +++ b/Assets/StreamingAssets/WireData.json @@ -1,546 +1,5 @@ { - "wires": [ - { - "startInterfaceName": "chudian228", - "endInterfaceName": "chudian210", - "startConnectionPointPosition": { - "x": -1.3627458810806275, - "y": -0.2951911687850952, - "z": 0.08528154343366623 - }, - "endConnectionPointPosition": { - "x": -1.382118821144104, - "y": -0.2899879813194275, - "z": 0.08528154343366623 - }, - "startPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "endPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "wireName": "Wire_20251128133415", - "cylinderScale": { - "x": 0.0020000000949949028, - "y": 0.010029755532741547, - "z": 0.0020000000949949028 - }, - "cylinderPosition": { - "x": -1.3724323511123658, - "y": -0.29258957505226138, - "z": 0.08528154343366623 - }, - "cylinderRotation": { - "x": 0.0, - "y": 0.0, - "z": 0.6085278987884522, - "w": 0.7935324907302856 - }, - "cylinderRadius": 0.0020000000949949028, - "hasStartInterface": true, - "hasEndInterface": true, - "debugInfo": "浠 CylinderWireData 缁勪欢鑾峰彇", - "wireType": "CylinderWireData", - "wireColorR": 0.5943396091461182, - "wireColorG": 0.18467965722084046, - "wireColorB": 0.12615686655044557, - "wireColorA": 1.0, - "hasCustomColor": true, - "connectionPointScale": 0.004999999888241291, - "startPointColorR": 0.7830188274383545, - "startPointColorG": 0.7830188274383545, - "startPointColorB": 0.7830188274383545, - "endPointColorR": 0.7830188274383545, - "endPointColorG": 0.7830188274383545, - "endPointColorB": 0.7830188274383545, - "startInterfaceStyleName": "", - "endInterfaceStyleName": "" - }, - { - "startInterfaceName": "chudian232", - "endInterfaceName": "chudian217", - "startConnectionPointPosition": { - "x": -1.378318190574646, - "y": -0.2723008692264557, - "z": 0.08528154343366623 - }, - "endConnectionPointPosition": { - "x": -1.382118821144104, - "y": -0.26208674907684328, - "z": 0.08528154343366623 - }, - "startPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "endPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "wireName": "Wire_20251128133418", - "cylinderScale": { - "x": 0.0020000000949949028, - "y": 0.005449152085930109, - "z": 0.0020000000949949028 - }, - "cylinderPosition": { - "x": -1.380218505859375, - "y": -0.2671937942504883, - "z": 0.08528154343366623 - }, - "cylinderRotation": { - "x": 0.0, - "y": 0.0, - "z": 0.1771707981824875, - "w": 0.9841801524162293 - }, - "cylinderRadius": 0.0020000000949949028, - "hasStartInterface": true, - "hasEndInterface": true, - "debugInfo": "浠 CylinderWireData 缁勪欢鑾峰彇", - "wireType": "CylinderWireData", - "wireColorR": 0.5943396091461182, - "wireColorG": 0.18467965722084046, - "wireColorB": 0.12615686655044557, - "wireColorA": 1.0, - "hasCustomColor": true, - "connectionPointScale": 0.004999999888241291, - "startPointColorR": 0.7830188274383545, - "startPointColorG": 0.7830188274383545, - "startPointColorB": 0.7830188274383545, - "endPointColorR": 0.7830188274383545, - "endPointColorG": 0.7830188274383545, - "endPointColorB": 0.7830188274383545, - "startInterfaceStyleName": "", - "endInterfaceStyleName": "" - }, - { - "startInterfaceName": "chudian208", - "endInterfaceName": "chudian212", - "startConnectionPointPosition": { - "x": -1.406347632408142, - "y": -0.26232433319091799, - "z": 0.08528154343366623 - }, - "endConnectionPointPosition": { - "x": -1.406347632408142, - "y": -0.2516351342201233, - "z": 0.08528154343366623 - }, - "startPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "endPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "wireName": "Wire_20251128133419", - "cylinderScale": { - "x": 0.0020000000949949028, - "y": 0.005344599485397339, - "z": 0.0020000000949949028 - }, - "cylinderPosition": { - "x": -1.406347632408142, - "y": -0.25697973370552065, - "z": 0.08528154343366623 - }, - "cylinderRotation": { - "x": 0.0, - "y": 0.0, - "z": 0.0, - "w": 1.0 - }, - "cylinderRadius": 0.0020000000949949028, - "hasStartInterface": true, - "hasEndInterface": true, - "debugInfo": "浠 CylinderWireData 缁勪欢鑾峰彇", - "wireType": "CylinderWireData", - "wireColorR": 0.5943396091461182, - "wireColorG": 0.18467965722084046, - "wireColorB": 0.12615686655044557, - "wireColorA": 1.0, - "hasCustomColor": true, - "connectionPointScale": 0.004999999888241291, - "startPointColorR": 0.7830188274383545, - "startPointColorG": 0.7830188274383545, - "startPointColorB": 0.7830188274383545, - "endPointColorR": 0.7830188274383545, - "endPointColorG": 0.7830188274383545, - "endPointColorB": 0.7830188274383545, - "startInterfaceStyleName": "", - "endInterfaceStyleName": "" - }, - { - "startInterfaceName": "chudian222", - "endInterfaceName": "chudian218", - "startConnectionPointPosition": { - "x": -1.382118821144104, - "y": -0.2516351342201233, - "z": 0.08528154343366623 - }, - "endConnectionPointPosition": { - "x": -1.3303356170654297, - "y": -0.26755011081695559, - "z": 0.08528154343366623 - }, - "startPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "endPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "wireName": "Wire_20251128133432", - "cylinderScale": { - "x": 0.0020000000949949028, - "y": 0.027086835354566575, - "z": 0.0020000000949949028 - }, - "cylinderPosition": { - "x": -1.356227159500122, - "y": -0.25959262251853945, - "z": 0.08528154343366623 - }, - "cylinderRotation": { - "x": 0.0, - "y": 0.0, - "z": -0.8042938709259033, - "w": 0.5942318439483643 - }, - "cylinderRadius": 0.0020000000949949028, - "hasStartInterface": true, - "hasEndInterface": true, - "debugInfo": "浠 CylinderWireData 缁勪欢鑾峰彇", - "wireType": "CylinderWireData", - "wireColorR": 0.5943396091461182, - "wireColorG": 0.18467965722084046, - "wireColorB": 0.12615686655044557, - "wireColorA": 1.0, - "hasCustomColor": true, - "connectionPointScale": 0.004999999888241291, - "startPointColorR": 0.7830188274383545, - "startPointColorG": 0.7830188274383545, - "startPointColorB": 0.7830188274383545, - "endPointColorR": 0.7830188274383545, - "endPointColorG": 0.7830188274383545, - "endPointColorB": 0.7830188274383545, - "startInterfaceStyleName": "", - "endInterfaceStyleName": "" - }, - { - "startInterfaceName": "chudian244", - "endInterfaceName": "chudian235", - "startConnectionPointPosition": { - "x": -1.3187440633773804, - "y": -0.24335770308971406, - "z": 0.08528154343366623 - }, - "endConnectionPointPosition": { - "x": -1.3187440633773804, - "y": -0.25326845049858096, - "z": 0.08528154343366623 - }, - "startPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "endPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "wireName": "Wire_20251203090653", - "cylinderScale": { - "x": 0.0020000000949949028, - "y": 0.004955373704433441, - "z": 0.0020000000949949028 - }, - "cylinderPosition": { - "x": -1.3187440633773804, - "y": -0.2483130693435669, - "z": 0.08528154343366623 - }, - "cylinderRotation": { - "x": 1.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "cylinderRadius": 0.0020000000949949028, - "hasStartInterface": true, - "hasEndInterface": true, - "debugInfo": "浠 CylinderWireData 缁勪欢鑾峰彇", - "wireType": "CylinderWireData", - "wireColorR": 0.5943396091461182, - "wireColorG": 0.18467977643013, - "wireColorB": 0.1261569857597351, - "wireColorA": 1.0, - "hasCustomColor": true, - "connectionPointScale": 0.004999999888241291, - "startPointColorR": 0.7830188274383545, - "startPointColorG": 0.7830188274383545, - "startPointColorB": 0.7830188274383545, - "endPointColorR": 0.7830188274383545, - "endPointColorG": 0.7830188274383545, - "endPointColorB": 0.7830188274383545, - "startInterfaceStyleName": "", - "endInterfaceStyleName": "" - }, - { - "startInterfaceName": "chudian220", - "endInterfaceName": "chudian227", - "startConnectionPointPosition": { - "x": -1.3185701370239258, - "y": -0.26755011081695559, - "z": 0.08528154343366623 - }, - "endConnectionPointPosition": { - "x": -1.3185701370239258, - "y": -0.2905614376068115, - "z": 0.08528154343366623 - }, - "startPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "endPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "wireName": "Wire_20251203090654", - "cylinderScale": { - "x": 0.0020000000949949028, - "y": 0.011505663394927979, - "z": 0.0020000000949949028 - }, - "cylinderPosition": { - "x": -1.3185701370239258, - "y": -0.27905577421188357, - "z": 0.08528154343366623 - }, - "cylinderRotation": { - "x": 1.0, - "y": 0.0, - "z": 0.0, - "w": 0.0 - }, - "cylinderRadius": 0.0020000000949949028, - "hasStartInterface": true, - "hasEndInterface": true, - "debugInfo": "浠 CylinderWireData 缁勪欢鑾峰彇", - "wireType": "CylinderWireData", - "wireColorR": 0.5943396091461182, - "wireColorG": 0.18467977643013, - "wireColorB": 0.1261569857597351, - "wireColorA": 1.0, - "hasCustomColor": true, - "connectionPointScale": 0.004999999888241291, - "startPointColorR": 0.7830188274383545, - "startPointColorG": 0.7830188274383545, - "startPointColorB": 0.7830188274383545, - "endPointColorR": 0.7830188274383545, - "endPointColorG": 0.7830188274383545, - "endPointColorB": 0.7830188274383545, - "startInterfaceStyleName": "", - "endInterfaceStyleName": "" - }, - { - "startInterfaceName": "chudian209", - "endInterfaceName": "chudian219", - "startConnectionPointPosition": { - "x": -1.3185701370239258, - "y": -0.3005053400993347, - "z": 0.08528154343366623 - }, - "endConnectionPointPosition": { - "x": -1.3627458810806275, - "y": -0.3050294816493988, - "z": 0.08528154343366623 - }, - "startPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "endPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "wireName": "Wire_20251203090655", - "cylinderScale": { - "x": 0.0020000000949949028, - "y": 0.02220340259373188, - "z": 0.0020000000949949028 - }, - "cylinderPosition": { - "x": -1.3406579494476319, - "y": -0.30276739597320559, - "z": 0.08528154343366623 - }, - "cylinderRotation": { - "x": 0.0, - "y": 0.0, - "z": 0.7422531843185425, - "w": 0.6701196432113648 - }, - "cylinderRadius": 0.0020000000949949028, - "hasStartInterface": true, - "hasEndInterface": true, - "debugInfo": "浠 CylinderWireData 缁勪欢鑾峰彇", - "wireType": "CylinderWireData", - "wireColorR": 0.5943396091461182, - "wireColorG": 0.18467977643013, - "wireColorB": 0.1261569857597351, - "wireColorA": 1.0, - "hasCustomColor": true, - "connectionPointScale": 0.004999999888241291, - "startPointColorR": 0.7830188274383545, - "startPointColorG": 0.7830188274383545, - "startPointColorB": 0.7830188274383545, - "endPointColorR": 0.7830188274383545, - "endPointColorG": 0.7830188274383545, - "endPointColorB": 0.7830188274383545, - "startInterfaceStyleName": "", - "endInterfaceStyleName": "" - }, - { - "startInterfaceName": "chudian241", - "endInterfaceName": "chudian226", - "startConnectionPointPosition": { - "x": -1.3627458810806275, - "y": -0.31486776471138, - "z": 0.08528154343366623 - }, - "endConnectionPointPosition": { - "x": -1.382118821144104, - "y": -0.30075377225875857, - "z": 0.08528154343366623 - }, - "startPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "endPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "wireName": "Wire_20251203090657", - "cylinderScale": { - "x": 0.0020000000949949028, - "y": 0.011984527111053467, - "z": 0.0020000000949949028 - }, - "cylinderPosition": { - "x": -1.3724323511123658, - "y": -0.30781078338623049, - "z": 0.08528154343366623 - }, - "cylinderRotation": { - "x": 0.0, - "y": 0.0, - "z": 0.4534080922603607, - "w": 0.8913030624389648 - }, - "cylinderRadius": 0.0020000000949949028, - "hasStartInterface": true, - "hasEndInterface": true, - "debugInfo": "浠 CylinderWireData 缁勪欢鑾峰彇", - "wireType": "CylinderWireData", - "wireColorR": 0.5943396091461182, - "wireColorG": 0.18467977643013, - "wireColorB": 0.1261569857597351, - "wireColorA": 1.0, - "hasCustomColor": true, - "connectionPointScale": 0.004999999888241291, - "startPointColorR": 0.7830188274383545, - "startPointColorG": 0.7830188274383545, - "startPointColorB": 0.7830188274383545, - "endPointColorR": 0.7830188274383545, - "endPointColorG": 0.7830188274383545, - "endPointColorB": 0.7830188274383545, - "startInterfaceStyleName": "", - "endInterfaceStyleName": "" - }, - { - "startInterfaceName": "chudian237", - "endInterfaceName": "chudian225", - "startConnectionPointPosition": { - "x": -1.382118821144104, - "y": -0.31115466356277468, - "z": 0.08528154343366623 - }, - "endConnectionPointPosition": { - "x": -1.406347632408142, - "y": -0.3009912967681885, - "z": 0.08528154343366623 - }, - "startPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "endPoint": { - "x": 0.0, - "y": 0.0, - "z": 0.0 - }, - "wireName": "Wire_20251203090658", - "cylinderScale": { - "x": 0.0020000000949949028, - "y": 0.013137059286236763, - "z": 0.0020000000949949028 - }, - "cylinderPosition": { - "x": -1.394233226776123, - "y": -0.30607298016548159, - "z": 0.08528154343366623 - }, - "cylinderRotation": { - "x": 0.0, - "y": 0.0, - "z": 0.5537055134773254, - "w": 0.8327125906944275 - }, - "cylinderRadius": 0.0020000000949949028, - "hasStartInterface": true, - "hasEndInterface": true, - "debugInfo": "浠 CylinderWireData 缁勪欢鑾峰彇", - "wireType": "CylinderWireData", - "wireColorR": 0.5943396091461182, - "wireColorG": 0.18467977643013, - "wireColorB": 0.1261569857597351, - "wireColorA": 1.0, - "hasCustomColor": true, - "connectionPointScale": 0.004999999888241291, - "startPointColorR": 0.7830188274383545, - "startPointColorG": 0.7830188274383545, - "startPointColorB": 0.7830188274383545, - "endPointColorR": 0.7830188274383545, - "endPointColorG": 0.7830188274383545, - "endPointColorB": 0.7830188274383545, - "startInterfaceStyleName": "", - "endInterfaceStyleName": "" - } - ], + "wires": [], "wireCount": 9, "sceneName": "xianchang-TSQ" } \ No newline at end of file