using UnityEngine;
using System.Collections;

public class MaterialTransition : MonoBehaviour {
	
	Renderer rend;

	void Start () {
		rend = GetComponent<Renderer> ();
	}
	// Update is called once per frame
	void Update () {
		//rend.material.Lerp (material2, material1, WallsManager.AllWallsHeight+0.5f);
		rend.material.SetFloat( "_Blend", WallsManager.AllWallsHeight+0.5f);
		//Debug.Log (WallsManager.AllWallsHeight + 0.25f);
		}
}