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

public class TimedDisappear : MonoBehaviour {
	private MeshRenderer wall;
	private float delay = 2.0f;
	private float timer = 0.0f;
	// Use this for initialization
	void Start () {
		wall = GetComponent<MeshRenderer>();
		wall.enabled = false;
	}
	
	// Update is called once per frame
	void Update () {
		timer += Time.deltaTime;
		if(wall.enabled && timer > delay){
			wall.enabled = false;
			timer = 0;
		}
	}
}
