using UnityEngine;
using System.Collections;

public class Move_Offscreen : MonoBehaviour {

	// Use this for initialization
	
	private global_variables variable_script;
	
	private GameObject gameManager;
	
	// Use this for initialization
	void Start () {
		gameManager = GameObject.FindGameObjectWithTag ("GameController").gameObject;
		variable_script = gameManager.GetComponent<global_variables> ();
	}
	
	// Update is called once per frame
	void Update () {

		if (variable_script.InCutscene==true) {
			
			this.GetComponent<RectTransform>().anchoredPosition = new Vector2 (0, 100);
		}
	}
}
