using System; using UnityEngine; using UnityEngine.UI; namespace Unity.BossRoom.Gameplay.UI { [RequireComponent(typeof(Image))] public class UITinter : MonoBehaviour { [SerializeField] Color[] m_TintColors; Image m_Image; void Awake() { m_Image = GetComponent(); } public void SetToColor(int colorIndex) { if (colorIndex >= m_TintColors.Length) return; m_Image.color = m_TintColors[colorIndex]; } } }