Skip to content

Commit dc89fd9

Browse files
committed
Fix compiler errors if both input systems are enabled
1 parent 719cde5 commit dc89fd9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Runtime/NavigationStack.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,21 @@ public class NavigationStack : MonoBehaviour
3232
public GameObject top => items.Count > 0 ? items.Peek() : null;
3333

3434
#if ENABLE_INPUT_SYSTEM
35-
3635
/// <summary>
3736
/// The input action that handles backwards navigation by popping items
3837
/// off the stack.
3938
/// </summary>
4039
[Tooltip("The input action that handles backwards navigation by popping items off the stack.")]
4140
public InputAction backNavigationInput = new InputAction("MenuBackNavigation", InputActionType.Button);
41+
#endif
4242

43-
#elif ENABLE_LEGACY_INPUT_MANAGER
44-
43+
#if ENABLE_LEGACY_INPUT_MANAGER
4544
/// <summary>
4645
/// The input button that handles backwards navigation by popping items
4746
/// off the stack.
4847
/// </summary>
4948
[Tooltip("The input button that handles backwards navigation by popping items off the stack.")]
5049
public string backNavigationInputButton = "Cancel";
51-
5250
#endif
5351

5452
/// <summary>

0 commit comments

Comments
 (0)