using UnityEngine;
using System.Collections;

public class Blink : MonoBehaviour {

	public float m_fTimer;
	private float m_fChangeTime;
	public Transform m_ObjectToChange;

	// Use this for initialization
	void Start () {

		m_fChangeTime = Time.time;
	
	}
	
	// Update is called once per frame
	void Update () {

		if( m_fChangeTime + m_fTimer <= Time.time )
		{
			m_fChangeTime = Time.time;
			m_ObjectToChange.gameObject.SetActive( !m_ObjectToChange.gameObject.activeSelf );

		}
	
	}
}
