using UnityEngine;
using System.Collections;

public class PowerUpLower : MonoBehaviour {


	void Update () {
		float heightScale = WallsManager.AllWallsHeight;

		Vector3 pos = transform.position;
		transform.position = new Vector3 (pos.x,  heightScale* 0.2f -.01f, pos.z);


		if (heightScale < 0) {
			transform.position = new Vector3 (pos.x,  heightScale* 7f - 1.45f, pos.z);
		}
	}
}
