void OnDestroy() { if (console != null) { console.Shutdown(); } }
public new void OnDestroy() { base.OnDestroy(); if (isConsoleServer) { console.Shutdown(); } }
// // 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(); }
// // 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() { #if SERVER console.Shutdown(); #endif }