void CloseConsoleWindow()
 {
     if (console != null)
     {
         console.Shutdown();
         console = null;
         input   = null;
     }
 }
 //
 // It's important to call console.ShutDown in OnDestroy
 // because compiling will error out in the editor if you don't
 // because we redirected output. This sets it back to normal.
 //
 void OnDestroy()
 {
     console.Shutdown();
 }