protected override void EnteredTree() { var mapManager = IoCManager.Resolve <IMapManager>(); foreach (var mapId in mapManager.GetAllMapIds()) { MapOptions.AddItem(mapId.ToString(), (int)mapId); } Reset(); MapOptions.OnItemSelected += OnOptionSelect; RotationSpin.ValueChanged += OnRotate; SubmitButton.OnPressed += OnSubmitButtonPressed; TeleportButton.OnPressed += OnTeleportButtonPressed; ResetButton.OnPressed += OnResetButtonPressed; }