using System.Collections; using System.Collections.Generic; using UnityEngine; public class MinimapHandler : MonoBehaviour { public Transform Player; public Transform Border; void LateUpdate() { Vector3 newPosition = Player.position; newPosition.y = transform.position.y; transform.position = newPosition; transform.rotation = Quaternion.Euler(90.0f, Player.eulerAngles.y, 0f); Border.transform.rotation = Quaternion.Euler(0f, 0f, Player.eulerAngles.y); } }