private void ForTest()
{
buttonTestA.ActiveChanged += (sender, e) =>
{
if (e.NewState)
{
switchSpiderEyes2.SetPower(true);
Thread.Sleep(1000);
switchSpiderEyes2.SetPower(false);
// audioSpider.PlayEffect("gollum_precious1");
// switchHand.SetPower(true);
// audioGeorge.PlayBackground();
// lightBeauty.SetBrightness(1.0);
// Thread.Sleep(5000);
// lightGeorge.TurnOff();
// lightPopup.TurnOff();
// lightBeauty.TurnOff();
//// lightFloor.TurnOff();
// switchHand.SetPower(false);
// audioPlayer.PlayEffect("266 Monster Growl 7", 1.0, 1.0);
// System.Threading.Thread.Sleep(3000);
// audioPlayer.PlayEffect("laugh", 0.0, 1.0);
}
};
buttonTestB.ActiveChanged += (sender, e) =>
{
if (e.NewState)
{
audioBeauty.PlayEffect("gollum_precious1", 0.0, 1.0);
switchHead.SetPower(true);
lightPopup.SetBrightness(1.0);
Thread.Sleep(5000);
lightGeorge.TurnOff();
lightPopup.TurnOff();
lightBeauty.TurnOff();
switchHand.SetPower(false);
switchHead.SetPower(false);
}
};
buttonTestC.ActiveChanged += (sender, e) =>
{
//if (e.NewState)
//{
// flickerEffect.Start();
// flickerEffect2.Start();
//}
//else
//{
// flickerEffect.Stop();
// flickerEffect2.Stop();
//}
switchFog.SetPower(e.NewState);
};
buttonTestSpider.ActiveChanged += (sender, e) =>
{
switchSpider.SetPower(e.NewState);
switchSpiderEyes2.SetPower(e.NewState);
};
}