Beispiel #1
0
    void FixedUpdate()
    {
        if (Input.GetKeyDown(KeyCode.P))
        {
            processor.ProcessSpokenFile(lightoff);
        }

        if (Input.GetKeyDown(KeyCode.O))
        {
            processor.ProcessSpokenFile(lighton);
        }

        if (Input.GetKeyDown(KeyCode.W))
        {
            processor.ProcessSpokenFile(move10);
        }

        if (Input.GetKeyDown(KeyCode.R))
        {
            if (enRec)
            {
                SwitchRecord();
            }
        }
    }
    void FixedUpdate()
    {
        if (Input.GetKeyDown(KeyCode.P))
        {
            string file = filepath + lightoff;
        }
        else if (Input.GetKeyDown(KeyCode.O))
        {
            string file = filepath + lighton;
        }
        else if (Input.GetKeyDown(KeyCode.W))
        {
            string file = filepath + move10;
        }
        else if (Input.GetKeyDown(KeyCode.G))
        {
            string file = filepath + go;
        }
        else if (Input.GetKeyDown(KeyCode.S))
        {
            string file = filepath + stop;
        }

        processor.ProcessSpokenFile(file);
    }