, Visual C#


- 8


mySpeech = ".";

myRobby.Speak(mySpeech, myObject);

// :

myRobby.Play(comboBox2.SelectedItem.ToString());

// :

myRobby.Play("RestPose");

}

}

, , , :

, TextBox, ;

TextBox , .

( Properties button1 Events Click). Form1.cs ( button1_Click), .

48.6. .

private void button1_Click(object sender, EventArgs e)

{

// ,

// :

myAgentController = new AgentObjects.Agent();

myAgentController.Connected = true;

myAgentController.Characters.Load(

"genie", "genie.acs");

myGenie =

myAgentController.Characters.Character("genie");

myAgentController.Characters.Load(

"merlin", "merlin.acs");

myMerlin =

myAgentController.Characters.Character("merlin");

myAgentController.Characters.Load(

"peedy", "peedy.acs");

myPeedy =

myAgentController.Characters.Character("peedy");

myAgentController.Characters.Load(

"robby", "robby.acs");

myRobby =

myAgentController.Characters.Character("robby");

// TextBox