This commit is contained in:
DerTyp187
2021-10-02 14:52:59 +02:00
parent bb1a03038c
commit 614358a362
11 changed files with 128 additions and 11 deletions

View File

@@ -0,0 +1,17 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Minimap : MonoBehaviour
{
[SerializeField] private Transform player;
private void LateUpdate()
{
Vector3 newPosition = player.position;
newPosition.y = transform.position.y;
transform.position = newPosition;
transform.rotation = Quaternion.Euler(90f, player.eulerAngles.y, 0f);
}
}