2026-05-15 충돌오류 진행중
This commit is contained in:
@@ -127,6 +127,24 @@ public @GameInput()
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Dash"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""4245d8e3-7e61-4548-84af-75512958eb2f"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Roll"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""7e00ae7c-ad0c-460d-be3d-0072054ceb9c"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -188,7 +206,7 @@ public @GameInput()
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""b9d8e2f3-4a5c-4b6d-8e7f-901234567890"",
|
||||
""path"": ""<Keyboard>/space"",
|
||||
""path"": ""<Keyboard>/c"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
@@ -217,6 +235,28 @@ public @GameInput()
|
||||
""action"": ""Kick"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""8bca2399-c8c8-41e8-a3b2-08267c8bc571"",
|
||||
""path"": ""<Keyboard>/leftShift"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Dash"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""df4d72ec-012c-413a-862d-1a36d2c5b69a"",
|
||||
""path"": ""<Keyboard>/space"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Roll"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -229,6 +269,8 @@ public @GameInput()
|
||||
m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true);
|
||||
m_Player_Punch = m_Player.FindAction("Punch", throwIfNotFound: true);
|
||||
m_Player_Kick = m_Player.FindAction("Kick", throwIfNotFound: true);
|
||||
m_Player_Dash = m_Player.FindAction("Dash", throwIfNotFound: true);
|
||||
m_Player_Roll = m_Player.FindAction("Roll", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
~@GameInput()
|
||||
@@ -313,6 +355,8 @@ public int FindBinding(InputBinding bindingMask, out InputAction action)
|
||||
private readonly InputAction m_Player_Jump;
|
||||
private readonly InputAction m_Player_Punch;
|
||||
private readonly InputAction m_Player_Kick;
|
||||
private readonly InputAction m_Player_Dash;
|
||||
private readonly InputAction m_Player_Roll;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "Player".
|
||||
/// </summary>
|
||||
@@ -341,6 +385,14 @@ public struct PlayerActions
|
||||
/// </summary>
|
||||
public InputAction @Kick => m_Wrapper.m_Player_Kick;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Dash".
|
||||
/// </summary>
|
||||
public InputAction @Dash => m_Wrapper.m_Player_Dash;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Roll".
|
||||
/// </summary>
|
||||
public InputAction @Roll => m_Wrapper.m_Player_Roll;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action map instance.
|
||||
/// </summary>
|
||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||
@@ -378,6 +430,12 @@ public void AddCallbacks(IPlayerActions instance)
|
||||
@Kick.started += instance.OnKick;
|
||||
@Kick.performed += instance.OnKick;
|
||||
@Kick.canceled += instance.OnKick;
|
||||
@Dash.started += instance.OnDash;
|
||||
@Dash.performed += instance.OnDash;
|
||||
@Dash.canceled += instance.OnDash;
|
||||
@Roll.started += instance.OnRoll;
|
||||
@Roll.performed += instance.OnRoll;
|
||||
@Roll.canceled += instance.OnRoll;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -401,6 +459,12 @@ private void UnregisterCallbacks(IPlayerActions instance)
|
||||
@Kick.started -= instance.OnKick;
|
||||
@Kick.performed -= instance.OnKick;
|
||||
@Kick.canceled -= instance.OnKick;
|
||||
@Dash.started -= instance.OnDash;
|
||||
@Dash.performed -= instance.OnDash;
|
||||
@Dash.canceled -= instance.OnDash;
|
||||
@Roll.started -= instance.OnRoll;
|
||||
@Roll.performed -= instance.OnRoll;
|
||||
@Roll.canceled -= instance.OnRoll;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -469,5 +533,19 @@ public interface IPlayerActions
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnKick(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Dash" 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 OnDash(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Roll" 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 OnRoll(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user