Пример #1
0
    void Start()
    {
        iconContol = FindObjectOfType<IconController>();
        hex = GetComponentInParent<Hex>();
        icon = GetComponent<Image>();

        hexClimate = hex.GetClimate();
        prevClimate = hexClimate;

        icon.color = iconContol.GetHexClimateColor(hexClimate);
    }