public void disableModule() { moduleIsEnabled = false; energyFlow = 0; Events["extendEvent"].active = false; Events["retractEvent"].active = false; Fields["guiStatus"].guiActive = false; Actions["toggleAction"].active = false; Actions["extendAction"].active = false; Actions["retractAction"].active = false; sunTransform = null; windBreakTransform = null; pivotData = null; suncatcherData = null; if (animationController != null) { animationController.removeCallback(onAnimationStatusChanged); } animationController = null; }