using Shapes; using UnityEngine; [RequireComponent(typeof(Rectangle))] public class ApplyUpgradeIndicatorColor : MonoBehaviour { private void Start() { Rectangle component = GetComponent(); if ((bool)ColorAndLightManager.currentColorscheme) { component.Color = ColorAndLightManager.currentColorscheme.upgradeInteractorColor; } } }