using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

public class DotText : MonoBehaviour
{
    [SerializeField] DotProductDisplay _dotProductDisplay;
    [SerializeField] TMP_Text _text;

    void OnValidate()
    {
        _text = GetComponent<TMP_Text>();
    }

    void Update()
    {
        _text.SetText($"Dot: {_dotProductDisplay.Dot:N2}");
    }
}