Commit 7bf7751a authored by catdog's avatar catdog

점수, 콤보 관련 함수

parent e478b624
......@@ -7,6 +7,9 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
{
public GameObject ringUIPrefab;
public Text scoreText;
public Text comboText;
private void Start()
{
NoteObject.OnNoteHit += OnNoteHit;
......@@ -20,4 +23,16 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
{
return Instantiate(ringUIPrefab, transform).GetComponent<RectTransform>();
}
public void UpdateScoreUI(int score)
{
scoreText.text = score.ToString();
}
public void UpdateComboUI(int combo)
{
if (combo < 1)
comboText.text = "";
else
comboText.text = combo.ToString() + " Combo!";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment