using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Minimap : MonoBehaviour
{
private Transform player;
private void Start()
{
player = GameObject.FindWithTag("Player").transform;
}
private void LateUpdate()
{
Vector3 newPosition = player.position;
newPosition.y = transform.position.y;
transform.position = newPosition;
transform.rotation = Quaternion.Euler(90f, player.eulerAngles.y, 0f);
}
}
public abstract class Player : MonoBehaviour
{
}
public class PlayerA : Player
{
}
public class PlayerB : Player
{
}