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 {