File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Assets/Samples/RebindingUI Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class InvokeUnityEvent : MonoBehaviour
99 {
1010 [ Tooltip ( "The input action that triggers the Unity event when performed." ) ]
1111 public InputActionReference action ;
12-
12+
1313 [ Tooltip ( "The Unity event to be invoked when action is performed." ) ]
1414 public UnityEvent onPerformed ;
1515
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ public class RebindUIGameManager : MonoBehaviour
1010 {
1111 [ Tooltip ( "The in-game menu object to be activated and deactivated when menu is toggled (Required)." ) ]
1212 public GameObject menu ;
13-
13+
1414 [ Tooltip ( "The gameplay actions to be disabled when exiting game mode and enabled when entering game mode (Required)." ) ]
1515 public InputActionAsset gameplayActions ;
16-
16+
1717 [ Tooltip ( "The input action to be used to toggle menu (Required)." ) ]
1818 public InputActionReference toggleMenuAction ;
19-
19+
2020 /// <summary>
2121 /// Toggles between game state and rebinding menu state.
2222 /// </summary>
@@ -32,7 +32,7 @@ public void ToggleMenu()
3232 break ;
3333 }
3434 }
35-
35+
3636 private enum GameState
3737 {
3838 Initializing ,
@@ -42,13 +42,13 @@ private enum GameState
4242
4343 private GameState m_CurrentState = GameState . Initializing ;
4444 private GameState m_NextState = GameState . Playing ;
45-
45+
4646 private void SetState ( GameState newState )
4747 {
4848 // Abort if there is no change to state
4949 if ( newState == m_CurrentState )
5050 return ;
51-
51+
5252 // Update current state
5353 m_CurrentState = newState ;
5454
@@ -70,7 +70,7 @@ private void SetState(GameState newState)
7070 EventSystem . current . SetSelectedGameObject ( EventSystem . current . firstSelectedGameObject ) ;
7171 break ;
7272 }
73-
73+
7474 Debug . Log ( m_CurrentState ) ;
7575 }
7676
You can’t perform that action at this time.
0 commit comments