/*=============================================================================== Copyright (C) 2022 Immersal - Part of Hexagon. All Rights Reserved. This file is part of the Immersal SDK. The Immersal SDK cannot be copied, distributed, or made available to third-parties for commercial purposes without written permission of Immersal Ltd. Contact sdk@immersal.com for licensing requests. ===============================================================================*/ using UnityEngine; using UnityEngine.UI; using TMPro; namespace Immersal.Samples.Mapping { public class MappingUIComponent : MonoBehaviour { [SerializeField] private GameObject target_button = null; [SerializeField] private TextMeshProUGUI[] texts = null; private Image image = null; private Button button = null; private Color button_normalColor = new Color(0f, 0f, 0f, 0.8f); private Color button_disabledColor = new Color(0f, 0f, 0f, 0.4f); private Color icon_normalColor = new Color(1f, 1f, 1f, 1f); private Color icon_disabledColor = new Color(0.5f, 0.5f, 0.5f, 1f); private void Start() { image = GetComponent(); if(image == null) { image = target_button.GetComponent(); } button = GetComponent