示例#1
0
        private void CreateKeyBeam(HybridLabel label, JudgeKind kind, bool isEarly)
        {
            Vector3 color = Vector3.One;

            bool doAnim = true;

            switch (kind)
            {
            case JudgeKind.Passive: doAnim = false; goto case JudgeKind.Perfect;

            case JudgeKind.Perfect: color = new Vector3(1, 1, 0.5f); break;

            case JudgeKind.Critical: color = new Vector3(1, 1, 0); break;

            case JudgeKind.Near: color = isEarly ? new Vector3(1.0f, 0, 1.0f) : new Vector3(0.5f, 1, 0.25f); break;

            case JudgeKind.Bad:
            case JudgeKind.Miss: color = new Vector3(1, 0, 0); break;
            }

            m_highwayView.BeginKeyBeam(label, color);
            if (doAnim)
            {
                m_critRootWorld.TriggerButtonAnimation((int)label, color);
            }
        }
示例#2
0
        private void CreateKeyBeam(int streamIndex, JudgeKind kind, bool isEarly)
        {
            Vector3 color = Vector3.One;

            switch (kind)
            {
            case JudgeKind.Passive:
            case JudgeKind.Perfect: color = new Vector3(1, 1, 0); break;

            case JudgeKind.Critical: color = new Vector3(1, 1, 0); break;

            case JudgeKind.Near: color = isEarly ? new Vector3(1.0f, 0, 1.0f) : new Vector3(0.5f, 1, 0.25f); break;

            case JudgeKind.Bad:
            case JudgeKind.Miss: color = new Vector3(1, 0, 0); break;
            }

            m_highwayView.CreateKeyBeam(streamIndex, color);
        }
示例#3
0
 public JudgeResult(time_t diff, JudgeKind kind)
 {
     Difference = diff;
     Kind       = kind;
 }
示例#4
0
 public void AddTimingInfo(time_t timingDelta, JudgeKind kind)
 {
     m_timingBar.AddTimingInfo(timingDelta, kind);
 }
示例#5
0
 public void AddTimingInfo(time_t timingDelta, JudgeKind kind)
 {
     m_numInputs++;
     m_totalInaccuracy += timingDelta;
 }