예제 #1
0
    // 将连击数设置为0
    public void     clearComboCount()
    {
        this.combo_count = 0;
        this.combo       = COMBO.NORMAL;

        Navi.get().setCombo(this.combo);
    }
예제 #2
0
    // 增加连击数
    public void     addComboCount()
    {
        this.combo_count++;

        switch (this.combo_count)
        {
        case 0:
        {
            GetComponent <AudioSource>().clip = COMBO_SOUND_01;
        }
        break;

        case 1:
        {
            GetComponent <AudioSource>().clip = COMBO_SOUND_01;
        }
        break;

        case 2:
        {
            GetComponent <AudioSource>().clip = COMBO_SOUND_02;
            this.combo = COMBO.CHAIN01;

            Navi.get().setCombo(this.combo);
        }
        break;

        default:
        {
            GetComponent <AudioSource>().clip = COMBO_SOUND_03;
            this.combo = COMBO.CHAIN02;

            Navi.get().setCombo(this.combo);
        }
        break;
        }

        GetComponent <AudioSource>().Play();
    }
예제 #3
0
    // 撞破窗户纸的瞬间
    public void     onPlayerHitted()
    {
        this.combo = COMBO.FAILED;

        Navi.get().setCombo(this.combo);
    }