From 1688e7d967261fb4e651add64094fb758ec55f7a Mon Sep 17 00:00:00 2001 From: Cg-Fly <1499046294@qq.com> Date: Tue, 11 Feb 2025 16:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E8=A7=86=E9=A2=91=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E8=80=83=E6=A0=B8=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Resources/UIPrefabs/ThreeVideoChoicePrefab.prefab | 6 +++--- Assets/_Scripts/Application/UI/ThreeVideoChoicePrefab.cs | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Assets/Resources/UIPrefabs/ThreeVideoChoicePrefab.prefab b/Assets/Resources/UIPrefabs/ThreeVideoChoicePrefab.prefab index 9532e22..1a90b00 100644 --- a/Assets/Resources/UIPrefabs/ThreeVideoChoicePrefab.prefab +++ b/Assets/Resources/UIPrefabs/ThreeVideoChoicePrefab.prefab @@ -717,7 +717,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0, g: 1, b: 0, a: 1} + m_Color: {r: 0, g: 0.15852594, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -792,7 +792,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0, g: 1, b: 0, a: 1} + m_Color: {r: 0, g: 0.15852594, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -1432,7 +1432,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0, g: 1, b: 0, a: 1} + m_Color: {r: 0, g: 0.15852594, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 diff --git a/Assets/_Scripts/Application/UI/ThreeVideoChoicePrefab.cs b/Assets/_Scripts/Application/UI/ThreeVideoChoicePrefab.cs index 181c7bc..3d7354b 100644 --- a/Assets/_Scripts/Application/UI/ThreeVideoChoicePrefab.cs +++ b/Assets/_Scripts/Application/UI/ThreeVideoChoicePrefab.cs @@ -47,8 +47,11 @@ namespace ZXK.LouDiXvMuNiu VideoPlayer videoPlayCtrl = _videoItemContainer.GetChild(i).Find("Video Player").GetComponent(); videoPlayCtrl.url = _videoPath; _videoItemContainer.GetChild(i).Find("Text").GetComponent().text = tipMsg[i]; - videoPlayCtrl.Play(); + videoPlayCtrl.Play(); _videoItemContainer.GetChild(i).GetComponent().interactable = selAble; + if(selAble&&i==0){ + _videoItemContainer.GetChild(i).GetComponent().isOn = false; + } } else {