using UnityEngine;
using System.Collections;

public class StartDelay : MonoBehaviour {

    public float TimeDelay = 3.0f;

    private LevelTimer levTimer;

    private SequenceFlasher seqflash;



	// Use this for initialization
	void Start () {
        seqflash = GetComponent<SequenceFlasher>();
        levTimer = GameObject.FindGameObjectWithTag("LevelTimer").GetComponent<LevelTimer>();
	}
	
	// Update is called once per frame
	void Update () {
        TimeDelay -= Time.deltaTime;
        if (TimeDelay <= 0.0f)
        {
            seqflash.enabled = true;
            levTimer.enabled = true;
            this.enabled = false;

            TimeDelay = 3.0f;
        
        }
	}
}
