using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Compass : MonoBehaviour {

	public RectTransform Needle;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		Vector3 locRot = Needle.localRotation.eulerAngles;
		locRot.z = PlayerShipController.instance.transform.rotation.eulerAngles.y*-1;
		Needle.localRotation = Quaternion.Euler(locRot);
	}
}
