/// <summary> /// Detach the MoonSharp script from the debugger. /// </summary> protected virtual void OnDestroy() { if (DebugServer != null) { DebugServer.Detach(interpreter); } }