This commit is contained in:
taosuqi 2026-02-07 09:09:37 +08:00
parent 9b22b264b2
commit 366d45c251
3 changed files with 68 additions and 549 deletions

View File

@ -1,18 +1,76 @@
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using TMPro;
using UnityEngine; using UnityEngine;
using DG.Tweening;
public class UI_RoamingPanel : MonoBehaviour public class UI_RoamingPanel : BasePanel
{ {
// Start is called before the first frame update private CanvasGroup canvasGroup; //屏幕显示
void Start() protected override void Awake()
{ {
base.Awake();
OnInit();
} }
// Update is called once per frame public void OnInit()
void Update()
{ {
canvasGroup = GetComponent<CanvasGroup>();
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;
}
}
/// <summary>
/// 漫游
/// </summary>
/// <returns></returns>
private IEnumerator RoamingIE()
{
yield return new WaitForSeconds(1f);
}
/// <summary>
/// 提问渐显
/// </summary>
public void FadeIn(float time)
{
canvasGroup.DOFade(1f, time);
canvasGroup.interactable = true;
canvasGroup.blocksRaycasts = true;
}
/// <summary>
/// 提问渐隐
/// </summary>
public void FadeOut(float time)
{
canvasGroup.DOFade(0f, time);
canvasGroup.interactable = false;
canvasGroup.blocksRaycasts = false;
} }
} }

View File

@ -123,6 +123,8 @@ public class UI_TopTitlePanel : BasePanel
Bootstrap.Instance.uiManager.ShowPanel<UI_TopTitlePanel>(this, E_UI_Layer.Top, (panel) => Bootstrap.Instance.uiManager.ShowPanel<UI_TopTitlePanel>(this, E_UI_Layer.Top, (panel) =>
{ {
Bootstrap.Instance.uiManager.HidePanel<UI_LoginPanel>(); Bootstrap.Instance.uiManager.HidePanel<UI_LoginPanel>();
Bootstrap.Instance.uiManager.HidePanel< UI_TopTipPanel>();
Bootstrap.Instance.uiManager.HidePanel< UI_ExperimentChooesPanel>();
Debug.Log("场景加载成功"); Debug.Log("场景加载成功");
}); });
}); });

View File

@ -1,546 +1,5 @@
{ {
"wires": [ "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": ""
}
],
"wireCount": 9, "wireCount": 9,
"sceneName": "xianchang-TSQ" "sceneName": "xianchang-TSQ"
} }