Beispiel #1
0
 /// <summary>
 /// Clear events and stop thread
 /// </summary>
 private void ClearEvents()
 {
     if (thread != null)
     {
         thread.Abort();
     }
     // dispose Event
     Events.Dispose();
     Events = null;
 }
        public override void Dispose()
        {
#if DEBUG_3DRUDDER
            Debug.Log("dispose s3DRudderManager");
#endif
            base.Dispose();
            foreach (Rudder r in rudders)
            {
                r.Dispose();
            }
            Events.Dispose();

            _instance = null;
            GC.SuppressFinalize(this);
        }