Commit e2d48911 authored by Chae Ho Shin's avatar Chae Ho Shin

Result UI

parent e284086c
This diff is collapsed.
...@@ -24,8 +24,26 @@ public class GameManager : MonoBehaviour { ...@@ -24,8 +24,26 @@ public class GameManager : MonoBehaviour {
public TrackInfo CurrentTrack { get; set; } public TrackInfo CurrentTrack { get; set; }
public int Combo { get; set; } private int combo = 0;
public int Combo
{
get { return combo; }
set
{
if (value > LongestCombo)
LongestCombo = value;
combo = value;
}
}
public int LongestCombo { get; private set; }
public int Score { get; set; } public int Score { get; set; }
public Dictionary<Judge, int> JudgeCount = new Dictionary<Judge, int>
{
{ Judge.JudgeList[0], 0 },
{ Judge.JudgeList[1], 0 },
{ Judge.JudgeList[2], 0 },
{ Judge.JudgeList[3], 0 },
};
// Use this for initialization // Use this for initialization
void Start() void Start()
......
...@@ -146,6 +146,7 @@ public class JudgeManager : MonoBehaviour ...@@ -146,6 +146,7 @@ public class JudgeManager : MonoBehaviour
if (!judge.IsBreak) if (!judge.IsBreak)
GameManager.Instance.Combo++; GameManager.Instance.Combo++;
GameManager.Instance.Score += judge.Score; GameManager.Instance.Score += judge.Score;
GameManager.Instance.JudgeCount[judge]++;
Debug.Log(judge.Name); Debug.Log(judge.Name);
......
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