using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class Tutorial : MonoBehaviour
{
		public Text lightText;
		public GameObject lightToFollow;
		public float horPadding;
		public float verPadding;
		public Text weightText;
		public GameObject weightToFollow;
		public GameObject Placeholder1;
		public GameObject Placeholder2;
		public Text HeightTutText;
		
		// Use this for initialization
		void Start ()
		{
	
		}
	
		// Update is called once per frame
		void Update ()
		{
				lightText.rectTransform.position = Camera.main.WorldToScreenPoint (lightToFollow.transform.position + new Vector3 (horPadding, verPadding, 0f));
				weightText.rectTransform.position = Camera.main.WorldToScreenPoint (weightToFollow.transform.position + new Vector3 (horPadding, verPadding, 0f));
				HeightTutText.rectTransform.position = Camera.main.WorldToScreenPoint (Placeholder1.transform.position);
				if (weightToFollow.transform.position.y > Placeholder2.transform.position.y)
						HeightTutText.GetComponent<Animator> ().SetBool ("isActive", true);
		
		}
		void onTriggerEnter ()
		{
				
				
		
		
		
		}
}
