using UnityEngine;
using System.Collections;

public class CellHighLighter : MonoBehaviour 
{
    public Transform HighLight;
    private GameCell cell;
    private SpriteRenderer highLightRenderer;

	void Start () 
    {
        cell = GetComponent<GameCell>();
        highLightRenderer = HighLight.GetComponent<SpriteRenderer>();
	}
	
	void Update () 
    {
        highLightRenderer.enabled = cell.HighLight;
	}
}
