using UnityEngine;
using System.Collections;

public class BlinkingMarker : MonoBehaviour {

	float timer;
	SpriteRenderer sr;

	// Use this for initialization
	void Start () {
		sr = this.gameObject.GetComponent<SpriteRenderer> ();
	}
	
	// Update is called once per frame
	void Update () {
		timer += Time.deltaTime;

		if (timer > 0.666f)
		{
			sr.enabled = false;
		}
		if (timer > 1f)
		{
			sr.enabled = true;
			timer = 0;
		}
	}
}
