Example #1
0
    //結果の判定
    void judge(string tag)
    {
        musicPlayData.addComboNum();
        float z = Mathf.Abs(this.transform.position.z);

        if (z <= GREAT_LINE)
        {
            string status = "";
            if (tag == m.getHitHandStatus())
            {
                status = "great";
            }
            else
            {
                //交互の手を使った場合はexcellent
                status = "excellent";
                m.setHitHandStatus(tag);
            }
            processStatus(status);
        }
        else if ((z > GREAT_LINE) && (z < GOOD_LINE))
        {
            processStatus("good");
        }
        else
        {
            musicPlayData.setComboNum(0);
            processStatus("poor");
            isPoor = true;
        }
    }