public void Should_WritePitchControl()
        {
            var control = new PitchControl(new PitchControlOptions {
                PitchDegreesDelta = 1,
                Style             = ControlStyle.Auto
            }, ControlPosition.BottomLeft);

            var expectedJson = "{"
                               + "\"id\":\"" + control.Id + "\""
                               + ",\"type\":\"" + control.Type + "\""
                               + ",\"position\":\"" + control.Position.ToString() + "\""
                               + ",\"options\":{"
                               + "\"pitchDegreesDelta\":" + control.Options.PitchDegreesDelta.Value
                               + ",\"style\":\"" + control.Options.Style.ToString() + "\""
                               + "}"
                               + "}";

            TestAndAssertWrite(control, expectedJson);
        }
Esempio n. 2
0
    // Use this for initialization

    void Start()
    {
//		mic = micControl.GetComponent <MicControl> ();
        pitch = micControl.GetComponent <PitchControl> ();
    }