예제 #1
0
    void Update()
    {
        if (_isInRing && ProgramManager.instance.isUsingMidi && !ProgramManager.instance.isShowingFrequency)
        {
            if (MidiManager.GetKeyDown(ProgramManager.pitchMidiDict [GetComponentInChildren <Text> ().text]))
            {
                Destroy(gameObject);
            }
            if (Input.GetKey(KeyCode.Space))
            {
                Destroy(gameObject);
            }
        }

        if (MidiManager.GetKeyDown(ProgramManager.pitchMidiDict [GetComponentInChildren <Text> ().text]))
        {
            Debug.LogWarning("kek");
        }
    }