IEnumerator SetMotion2() { int mRoll = int.Parse(roll.text); int mPitch = int.Parse(pitch.text); int mSpeed = int.Parse(speed.text); Sym4DEmulator.Sym4D_X_StartContents(xPort); yield return(ws); Sym4DEmulator.Sym4D_X_SendMosionData2(mRoll, mPitch, mSpeed); yield return(ws); }