using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class IceCover : MonoBehaviour {

    public Tile tile;
    public float temp = -0.5f;
    public Renderer mr;

	void Start () {
        if (!tile.isPlayerTile) this.enabled = false;
	}
	
	void Update () {
        mr.enabled = tile.temperature < temp;
	}
}
