private void OnDestroy()
 {
     Debug.Assert((Object)Instance != (Object)null);
     Debug.Assert((Object)Instance == (Object)this);
     Cleanup();
     Instance = null;
 }
 private void Awake()
 {
     Debug.Assert((Object)Instance == (Object)null);
     Instance = this;
 }
 public static void DestroyInstance()
 {
     Instance = null;
 }