2025-06-03 02:42:28 -04:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
2025-07-08 14:28:40 -04:00
|
|
|
using Ichni.UI;
|
2025-06-03 02:42:28 -04:00
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
2025-07-08 14:28:40 -04:00
|
|
|
namespace Ichni.RhythmGame.UI
|
2025-06-03 02:42:28 -04:00
|
|
|
{
|
2025-07-08 14:28:40 -04:00
|
|
|
public class GameUICanvas : UIPageBase
|
2025-06-03 02:42:28 -04:00
|
|
|
{
|
|
|
|
|
public Button pauseButton;
|
|
|
|
|
public TMP_Text accuracyText;
|
|
|
|
|
public TMP_Text comboText;
|
|
|
|
|
|
|
|
|
|
public void UpdateAccuracy(float accuracy)
|
|
|
|
|
{
|
|
|
|
|
accuracyText.text = accuracy.ToString("F2") + "%";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UpdateCombo(int currentCombo)
|
|
|
|
|
{
|
|
|
|
|
comboText.text = currentCombo.ToString("D");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|