2025-01-09 11:07:20 -05:00
|
|
|
using TMPro;
|
2025-04-16 19:57:54 -04:00
|
|
|
using UnityEngine; using Game; using Music; using Player;
|
2025-01-09 11:07:20 -05:00
|
|
|
|
2025-04-16 19:57:54 -04:00
|
|
|
namespace Archaic{
|
2025-01-09 11:07:20 -05:00
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-04-16 19:57:54 -04:00
|
|
|
}
|