protected void AxAgent_Command(object sender, AxAgentObjects._AgentEvents_CommandEvent e) { IAgentCtlUserInput ui; ui = (IAgentCtlUserInput)e.userInput; if (ui.Name == "CharacterOptions") { AxAgent.PropertySheet.Visible = true; } }
protected void AxAgent_Command(object sender, AxAgentObjects._AgentEvents_CommandEvent e) { IAgentCtlUserInput ui; ui = (IAgentCtlUserInput)e.userInput; if (ui.Name == "Hello") { Character.Speak((object)"Hello. My name is Robby." + " Pleased to meet you.", null); PromptLabel.Text = "Say goodbye to dismiss Robby."; } if (ui.Name == "Goodbye") { Character.Speak((object)"It was nice talking to" + " you. Goodbye.", null); Character.Play("Wave"); Character.Play("Hide"); } }
private void a_Command(object sender, AxAgentObjects._AgentEvents_CommandEvent e) { this.Show(); this.BringToFront(); }