959e80cf72
assets upload description.
19 lines
475 B
C#
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);
|
|
}
|
|
}
|