Commit 5d59739a authored by 16이상민's avatar 16이상민

Modified judging machanism

parent fca95994
......@@ -29,13 +29,13 @@ namespace JudgeModule
private string[] notenames
= new string[] { "SBT", "LBT", "SMO", "LMO" };
public Note Current
public Note CurrentBT
{
get
{
float timing = 0;
string type = null;
foreach (var x in notenames)
foreach (var x in new string[] { "SBT", "LBT" })
{
if (enables[x].Count == 0)
continue;
......@@ -46,13 +46,27 @@ namespace JudgeModule
timing = enables[x][0].Instance.StartTiming;
}
}
return type == null ? null : enables[type][0].Instance;
}
}
if (type == null)
return null;
return enables[type][0].Instance;
public Note CurrentSMO
{
get
{
return enables["SMO"].Count == 0 ? null : enables["SMO"][0].Instance;
}
}
public Note CurrentLMO
{
get
{
return enables["LMO"].Count == 0 ? null : enables["LMO"][0].Instance;
}
}
private float MsPerBeat
{
get
......
......@@ -143,7 +143,13 @@ public class InGameManager : MonoBehaviour
return;
}
Note note = notemanager.Current;
JudgeNote(notemanager.CurrentBT, timing);
JudgeNote(notemanager.CurrentSMO, timing);
JudgeNote(notemanager.CurrentLMO, timing);
}
private void JudgeNote(Note note, float timing)
{
if (note != null)
judgemanager.JudgeNote(note, timing);
}
......
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