mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-10-29 12:22:07 +01:00
18 lines
425 B
C#
18 lines
425 B
C#
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);
|
|
}
|
|
}
|