Files
Crash-Course/Assets/Games/Pong/PongScorekeeper.cs

15 lines
333 B
C#
Raw Normal View History

2025-01-09 11:07:20 -05:00
using TMPro;
using UnityEngine;
public class PongScorekeeper : MonoBehaviour
{
public TextMeshProUGUI player1Score;
public TextMeshProUGUI player2Score;
private void Update()
{
player1Score.text = PongBallBehavior.score.x.ToString();
player2Score.text = PongBallBehavior.score.y.ToString();
}
}