using UnityEngine;
using System.Collections;

public class CameraFollow : MonoBehaviour {

	public Transform top;
	public Transform side;
	//private MeController mc;

	// Use this for initialization
	void Start () {
		//mc = GameObject.FindGameObjectWithTag ("Player").GetComponent<MeController> ();
		top = GameObject.FindGameObjectWithTag ("top").transform;
		side = GameObject.FindGameObjectWithTag ("side").transform;
	}
	
	// Update is called once per frame
	void Update () {
		top.transform.position = new Vector3 (transform.position.x, transform.position.y+10, transform.position.z);

		if(!GetComponent<MeController>().showTime)
			side.transform.position = new Vector3 (transform.position.x, transform.position.y, side.transform.position.z);
	}
}
