2026-05-18 부자연스러운 모션

This commit is contained in:
2026-05-18 14:36:34 +09:00
parent f2445c30c4
commit 271991d32f
17 changed files with 407 additions and 25 deletions

View File

@@ -154,6 +154,15 @@ public @GameInput()
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""GrabSmash"",
""type"": ""Button"",
""id"": ""c42f3219-3aca-4678-8a86-b74565af3747"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
@@ -277,6 +286,17 @@ public @GameInput()
""action"": ""BackDash"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""8635811d-29ac-4047-a3f7-d7a72f7e362e"",
""path"": ""<Keyboard>/g"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""GrabSmash"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
@@ -292,6 +312,7 @@ public @GameInput()
m_Player_Dash = m_Player.FindAction("Dash", throwIfNotFound: true);
m_Player_Roll = m_Player.FindAction("Roll", throwIfNotFound: true);
m_Player_BackDash = m_Player.FindAction("BackDash", throwIfNotFound: true);
m_Player_GrabSmash = m_Player.FindAction("GrabSmash", throwIfNotFound: true);
}
~@GameInput()
@@ -379,6 +400,7 @@ public int FindBinding(InputBinding bindingMask, out InputAction action)
private readonly InputAction m_Player_Dash;
private readonly InputAction m_Player_Roll;
private readonly InputAction m_Player_BackDash;
private readonly InputAction m_Player_GrabSmash;
/// <summary>
/// Provides access to input actions defined in input action map "Player".
/// </summary>
@@ -419,6 +441,10 @@ public struct PlayerActions
/// </summary>
public InputAction @BackDash => m_Wrapper.m_Player_BackDash;
/// <summary>
/// Provides access to the underlying input action "Player/GrabSmash".
/// </summary>
public InputAction @GrabSmash => m_Wrapper.m_Player_GrabSmash;
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get() { return m_Wrapper.m_Player; }
@@ -465,6 +491,9 @@ public void AddCallbacks(IPlayerActions instance)
@BackDash.started += instance.OnBackDash;
@BackDash.performed += instance.OnBackDash;
@BackDash.canceled += instance.OnBackDash;
@GrabSmash.started += instance.OnGrabSmash;
@GrabSmash.performed += instance.OnGrabSmash;
@GrabSmash.canceled += instance.OnGrabSmash;
}
/// <summary>
@@ -497,6 +526,9 @@ private void UnregisterCallbacks(IPlayerActions instance)
@BackDash.started -= instance.OnBackDash;
@BackDash.performed -= instance.OnBackDash;
@BackDash.canceled -= instance.OnBackDash;
@GrabSmash.started -= instance.OnGrabSmash;
@GrabSmash.performed -= instance.OnGrabSmash;
@GrabSmash.canceled -= instance.OnGrabSmash;
}
/// <summary>
@@ -586,5 +618,12 @@ public interface IPlayerActions
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnBackDash(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "GrabSmash" 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 OnGrabSmash(InputAction.CallbackContext context);
}
}