2026-05-20 무기습득

This commit is contained in:
2026-05-20 10:57:44 +09:00
parent 4a0b07701e
commit 3769ff87bf
289 changed files with 19793 additions and 14 deletions

View File

@@ -163,6 +163,33 @@ public @GameInput()
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""WeaponSlot1"",
""type"": ""Button"",
""id"": ""a1b2c3d4-1111-1111-1111-111111111111"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""WeaponSlot2"",
""type"": ""Button"",
""id"": ""a1b2c3d4-2222-2222-2222-222222222222"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""WeaponSlot3"",
""type"": ""Button"",
""id"": ""a1b2c3d4-3333-3333-3333-333333333333"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
@@ -297,6 +324,39 @@ public @GameInput()
""action"": ""GrabSmash"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b1c2d3e4-1111-1111-1111-111111111111"",
""path"": ""<Keyboard>/1"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""WeaponSlot1"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b1c2d3e4-2222-2222-2222-222222222222"",
""path"": ""<Keyboard>/2"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""WeaponSlot2"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b1c2d3e4-3333-3333-3333-333333333333"",
""path"": ""<Keyboard>/3"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""WeaponSlot3"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
@@ -313,6 +373,9 @@ public @GameInput()
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);
m_Player_WeaponSlot1 = m_Player.FindAction("WeaponSlot1", throwIfNotFound: true);
m_Player_WeaponSlot2 = m_Player.FindAction("WeaponSlot2", throwIfNotFound: true);
m_Player_WeaponSlot3 = m_Player.FindAction("WeaponSlot3", throwIfNotFound: true);
}
~@GameInput()
@@ -401,6 +464,9 @@ public int FindBinding(InputBinding bindingMask, out InputAction action)
private readonly InputAction m_Player_Roll;
private readonly InputAction m_Player_BackDash;
private readonly InputAction m_Player_GrabSmash;
private readonly InputAction m_Player_WeaponSlot1;
private readonly InputAction m_Player_WeaponSlot2;
private readonly InputAction m_Player_WeaponSlot3;
/// <summary>
/// Provides access to input actions defined in input action map "Player".
/// </summary>
@@ -445,6 +511,18 @@ public struct PlayerActions
/// </summary>
public InputAction @GrabSmash => m_Wrapper.m_Player_GrabSmash;
/// <summary>
/// Provides access to the underlying input action "Player/WeaponSlot1".
/// </summary>
public InputAction @WeaponSlot1 => m_Wrapper.m_Player_WeaponSlot1;
/// <summary>
/// Provides access to the underlying input action "Player/WeaponSlot2".
/// </summary>
public InputAction @WeaponSlot2 => m_Wrapper.m_Player_WeaponSlot2;
/// <summary>
/// Provides access to the underlying input action "Player/WeaponSlot3".
/// </summary>
public InputAction @WeaponSlot3 => m_Wrapper.m_Player_WeaponSlot3;
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get() { return m_Wrapper.m_Player; }
@@ -494,6 +572,15 @@ public void AddCallbacks(IPlayerActions instance)
@GrabSmash.started += instance.OnGrabSmash;
@GrabSmash.performed += instance.OnGrabSmash;
@GrabSmash.canceled += instance.OnGrabSmash;
@WeaponSlot1.started += instance.OnWeaponSlot1;
@WeaponSlot1.performed += instance.OnWeaponSlot1;
@WeaponSlot1.canceled += instance.OnWeaponSlot1;
@WeaponSlot2.started += instance.OnWeaponSlot2;
@WeaponSlot2.performed += instance.OnWeaponSlot2;
@WeaponSlot2.canceled += instance.OnWeaponSlot2;
@WeaponSlot3.started += instance.OnWeaponSlot3;
@WeaponSlot3.performed += instance.OnWeaponSlot3;
@WeaponSlot3.canceled += instance.OnWeaponSlot3;
}
/// <summary>
@@ -529,6 +616,15 @@ private void UnregisterCallbacks(IPlayerActions instance)
@GrabSmash.started -= instance.OnGrabSmash;
@GrabSmash.performed -= instance.OnGrabSmash;
@GrabSmash.canceled -= instance.OnGrabSmash;
@WeaponSlot1.started -= instance.OnWeaponSlot1;
@WeaponSlot1.performed -= instance.OnWeaponSlot1;
@WeaponSlot1.canceled -= instance.OnWeaponSlot1;
@WeaponSlot2.started -= instance.OnWeaponSlot2;
@WeaponSlot2.performed -= instance.OnWeaponSlot2;
@WeaponSlot2.canceled -= instance.OnWeaponSlot2;
@WeaponSlot3.started -= instance.OnWeaponSlot3;
@WeaponSlot3.performed -= instance.OnWeaponSlot3;
@WeaponSlot3.canceled -= instance.OnWeaponSlot3;
}
/// <summary>
@@ -625,5 +721,26 @@ public interface IPlayerActions
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnGrabSmash(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "WeaponSlot1" 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 OnWeaponSlot1(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "WeaponSlot2" 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 OnWeaponSlot2(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "WeaponSlot3" 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 OnWeaponSlot3(InputAction.CallbackContext context);
}
}