using UnityEngine;
using System.Collections;

public class platform_logic : MonoBehaviour {

	private global_variables variable_script;

	//Collision2D collsion1=GetComponent<BoxCollider2D>();
	
	private GameObject gameManager;

	public bool transcendable=false;

	void Awake ()
	{
		gameManager = GameObject.FindGameObjectWithTag ("GameController").gameObject;
		variable_script = gameManager.GetComponent<global_variables> ();
	}

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {

		if (transcendable && variable_script.movingUp == true) {
			//collider1.enabled=false;
			} else {
			//collider1.enabled=false;
			}
	}
}
