﻿using UnityEngine;

public class CameraFollow : MonoBehaviour
{
	[SerializeField]
	private Transform m_Target;

	private void Update()
	{
		if (GameController.instance.isGameOver) {
			return;
		}

		transform.SetX(m_Target.position.x);
		transform.SetY(m_Target.position.y);
	}
}