집씬으로 넘기기
This commit is contained in:
@@ -109,6 +109,15 @@ public @GameInput()
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""TestButton"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""3a07efb6-dbfa-4bf3-87f5-9d38882aa0f5"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -133,6 +142,17 @@ public @GameInput()
|
||||
""action"": ""DialogNext"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""87535666-fb0b-40b2-a1f0-284d77e21458"",
|
||||
""path"": ""<Keyboard>/t"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""TestButton"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -143,6 +163,7 @@ public @GameInput()
|
||||
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
|
||||
m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true);
|
||||
m_Player_DialogNext = m_Player.FindAction("DialogNext", throwIfNotFound: true);
|
||||
m_Player_TestButton = m_Player.FindAction("TestButton", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
~@GameInput()
|
||||
@@ -225,6 +246,7 @@ public int FindBinding(InputBinding bindingMask, out InputAction action)
|
||||
private List<IPlayerActions> m_PlayerActionsCallbackInterfaces = new List<IPlayerActions>();
|
||||
private readonly InputAction m_Player_Jump;
|
||||
private readonly InputAction m_Player_DialogNext;
|
||||
private readonly InputAction m_Player_TestButton;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "Player".
|
||||
/// </summary>
|
||||
@@ -245,6 +267,10 @@ public struct PlayerActions
|
||||
/// </summary>
|
||||
public InputAction @DialogNext => m_Wrapper.m_Player_DialogNext;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/TestButton".
|
||||
/// </summary>
|
||||
public InputAction @TestButton => m_Wrapper.m_Player_TestButton;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action map instance.
|
||||
/// </summary>
|
||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||
@@ -276,6 +302,9 @@ public void AddCallbacks(IPlayerActions instance)
|
||||
@DialogNext.started += instance.OnDialogNext;
|
||||
@DialogNext.performed += instance.OnDialogNext;
|
||||
@DialogNext.canceled += instance.OnDialogNext;
|
||||
@TestButton.started += instance.OnTestButton;
|
||||
@TestButton.performed += instance.OnTestButton;
|
||||
@TestButton.canceled += instance.OnTestButton;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -293,6 +322,9 @@ private void UnregisterCallbacks(IPlayerActions instance)
|
||||
@DialogNext.started -= instance.OnDialogNext;
|
||||
@DialogNext.performed -= instance.OnDialogNext;
|
||||
@DialogNext.canceled -= instance.OnDialogNext;
|
||||
@TestButton.started -= instance.OnTestButton;
|
||||
@TestButton.performed -= instance.OnTestButton;
|
||||
@TestButton.canceled -= instance.OnTestButton;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -347,5 +379,12 @@ public interface IPlayerActions
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnDialogNext(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "TestButton" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
||||
/// </summary>
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnTestButton(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user