Firstborn/Assets/Scripts/MinimapHandler.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

19 lines
475 B
C#

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);
}
}