using NextMind.Devices;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
namespace NextMind.Examples.Steps
{
///
/// The representation of a on the UI.
///
public class DeviceUIElement : MonoBehaviour
{
[SerializeField]
private Text nameText = null;
[SerializeField]
private Text stateText = null;
[SerializeField]
private Image bottomLine = null;
[SerializeField]
private Color selectedOn = Color.green;
[SerializeField]
private Color selectedOff = Color.gray;
[SerializeField]
private GameObject connectingBar = null;
[SerializeField]
private GameObject overlaySelectOn = null;
private Button button;
private Device currentDevice;
private UnityAction onValidateAction;
private void Awake()
{
button = GetComponent