diff --git a/Assets/Scripts/CockpitStateSave.cs b/Assets/Scripts/CockpitStateSave.cs index 5fa632f6..7417fbcc 100644 --- a/Assets/Scripts/CockpitStateSave.cs +++ b/Assets/Scripts/CockpitStateSave.cs @@ -117,7 +117,7 @@ public State ReadState() state.staticLocations.srvJoystick = SerializeTransform(srvJoystick.transform); state.staticLocations.sixDofController = SerializeTransform(sixDofController.transform); - state.controlButtons = ReadControlButtons(root.GetComponentsInChildren()).ToArray(); + state.controlButtons = ReadControlButtons(root.GetComponentsInChildren(true)).ToArray(); return state; }