Esempio n. 1
0
 private void Ring2(object sender,JointIntersectEventArgs e)
 {
     ThreadPool.QueueUserWorkItem(new WaitCallback((_)=>
         {
             var player=new System.Media.SoundPlayer("kick.wav");
             player.PlaySync();
             player.Dispose();
         }));
     return;
 }
 protected void OnIntersect(JointIntersectEventArgs e)
 {
     if(e!=null&&JointIntersect!=null) JointIntersect(this,e);
 }