Exemplo n.º 1
0
        public void PlayTapParticle(float2 position, JudgeType type, float textYOffset = 0)
        {
            ParticlePool.JudgeType jt = (ParticlePool.JudgeType)(-1);
            switch (type)
            {
            case JudgeType.Lost:
                jt = ParticlePool.JudgeType.Lost;
                break;

            case JudgeType.LateFar:
            case JudgeType.EarlyFar:
                jt = ParticlePool.JudgeType.Far;
                break;

            case JudgeType.EarlyPure:
            case JudgeType.LatePure:
                jt = ParticlePool.JudgeType.Pure;
                break;

            case JudgeType.MaxPure:
                jt = ParticlePool.JudgeType.MaxPure;
                break;
            }

            //I WANT TO USE SWITCH EXPRESSIONS BUT F*****G UNITY IS AWFUL AND I WANT TO DIE F**K
            ParticlePool.JudgeDetail jd = (ParticlePool.JudgeDetail)(-1);
            switch (type)
            {
            case JudgeType.Lost:
            case JudgeType.MaxPure:
                jd = ParticlePool.JudgeDetail.None;
                break;

            case JudgeType.EarlyFar:
            case JudgeType.EarlyPure:
                jd = ParticlePool.JudgeDetail.Early;
                break;

            case JudgeType.LateFar:
            case JudgeType.LatePure:
                jd = ParticlePool.JudgeDetail.Late;
                break;
            }

            tapQueue.Enqueue(new TapParticleDesc {
                position = position, type = jt, detail = jd, textYOffset = textYOffset
            });
        }
Exemplo n.º 2
0
 public void PlayTapParticle(float2 position, ParticlePool.JudgeType type, ParticlePool.JudgeDetail detail, float textYOffset = 0)
 {
     tapQueue.Enqueue(new TapParticleDesc {
         position = position, type = type, detail = detail, textYOffset = textYOffset
     });
 }