/// <summary> /// Release resources /// </summary> public override void ReleaseResources(MASFlightComputer comp, InternalProp internalProp) { variableRegistrar.ReleaseResources(); if (useFlash) { comp.UnregisterFlashCallback(flashRate, FlashToggle); } for (int i = localMaterial.Length - 1; i >= 0; --i) { UnityEngine.Object.Destroy(localMaterial[i]); } }