void Start() { iconContol = FindObjectOfType<IconController>(); hex = GetComponentInParent<Hex>(); icon = GetComponent<Image>(); hexTemp = hex.GetTemp(); prevTemp = hexTemp; icon.color = iconContol.GetHexTempColor(hexTemp); }