Пример #1
0
 private void Ring(object sender,JointHittingEventArgs e)
 {
     ThreadPool.QueueUserWorkItem(new WaitCallback((_)=>
         {
             var player=new System.Media.SoundPlayer("kick.wav");
             player.PlaySync();
             player.Dispose();
         }));
     return;
 }
Пример #2
0
 protected void OnHitting(JointHittingEventArgs e)
 {
     if(e!=null&&JointHitting!=null) JointHitting(this,e);
 }