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