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