diff --git a/vr-configurator/Assets/Scenes/SampleScene.unity b/vr-configurator/Assets/Scenes/SampleScene.unity index a6bca97..99a57a0 100644 --- a/vr-configurator/Assets/Scenes/SampleScene.unity +++ b/vr-configurator/Assets/Scenes/SampleScene.unity @@ -26490,6 +26490,7 @@ MonoBehaviour: m_EditorClassIdentifier: cms: {fileID: 89481405} marker: {fileID: 755573186} + ColorSelector: {fileID: 1728979212} --- !u!222 &1541654566 CanvasRenderer: m_ObjectHideFlags: 0 diff --git a/vr-configurator/Assets/Scripts/UI/PortSelectorButton.cs b/vr-configurator/Assets/Scripts/UI/PortSelectorButton.cs index 0629c07..6439406 100644 --- a/vr-configurator/Assets/Scripts/UI/PortSelectorButton.cs +++ b/vr-configurator/Assets/Scripts/UI/PortSelectorButton.cs @@ -8,6 +8,7 @@ public class PortSelectorButton : MonoBehaviour public ChildModelSelector cms; public GameObject marker; public Action RemoveOtherMarkers; + public ColorSelector ColorSelector; public string PortID { get; set; } public int PortIndex { set; get; } @@ -17,7 +18,8 @@ public class PortSelectorButton : MonoBehaviour } void OnClick() { - Debug.Log($"Opening CMS on {this}"); + Debug.Log($"Changing Port to {this}"); + ColorSelector.ResetThis(); cms.PortID = PortID; cms.PortIndex = PortIndex; cms.AssignButtons(); // rebuilds GUI