22 lines
469 B
C#
22 lines
469 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Convention;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace Demo.Game
|
|
{
|
|
public class PositionIndicator : MonoBehaviour
|
|
{
|
|
public GameObject faceTo;
|
|
public TMP_Text text;
|
|
|
|
private void Update()
|
|
{
|
|
text.text = transform.position.ToString();
|
|
if (faceTo != null)
|
|
text.transform.rotation = faceTo.transform.rotation;
|
|
}
|
|
}
|
|
}
|