using UnityEngine;
using System.Collections;

public class Compass : MonoBehaviour
{
		private Transform player;

		void Start ()
		{
				player = GameObject.FindGameObjectWithTag ("Player").GetComponent<Transform> ();
		}
	
		// Update is called once per frame
		void Update ()
		{
				transform.rotation = Quaternion.Euler (0, 0, - player.rotation.eulerAngles.y);
		}
}
