SensorOnScreen.cs 281 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using TMPro;
  5. public class SensorOnScreen : MonoBehaviour
  6. {
  7. public GetSumRed meas;
  8. public TextMeshProUGUI text;
  9. void Update()
  10. {
  11. text.text = meas.TotalRed.ToString();
  12. }
  13. }