切换主武器
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
||||
// version 1.14.2
|
||||
// version 1.17.0
|
||||
// from Assets/Input/PlayerInputActions.inputactions
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
@@ -228,10 +228,19 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""SwitchMainWeapon"",
|
||||
""type"": ""PassThrough"",
|
||||
""name"": ""SwitchPreviousMainWeapon"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""23373bb7-edbd-4df4-bfc4-6988b75aee1c"",
|
||||
""expectedControlType"": ""Digital"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": true
|
||||
},
|
||||
{
|
||||
""name"": ""SwitchNextMainWeapon"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""64102ac4-5555-45c0-9ad1-5368a2933a15"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": true
|
||||
@@ -263,20 +272,11 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""FastSwitchMainWeapon"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""a76b102a-054a-4d95-864d-fa46ebb075dd"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""RouletteSwitchMainWeapon"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""518be4f7-4a60-4178-8094-30fb0523362d"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
@@ -561,11 +561,22 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""2690141f-c8c8-4171-a115-9aee303742ed"",
|
||||
""path"": ""<Mouse>/scroll/y"",
|
||||
""interactions"": """",
|
||||
""path"": ""<Keyboard>/r"",
|
||||
""interactions"": ""Press(behavior=1)"",
|
||||
""processors"": """",
|
||||
""groups"": ""KeyboardMouse"",
|
||||
""action"": ""SwitchMainWeapon"",
|
||||
""action"": ""SwitchPreviousMainWeapon"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""3d0ed8b7-a930-4ae4-8357-5c9ad407c03c"",
|
||||
""path"": ""<Keyboard>/f"",
|
||||
""interactions"": ""Press(behavior=1)"",
|
||||
""processors"": """",
|
||||
""groups"": ""KeyboardMouse"",
|
||||
""action"": ""SwitchNextMainWeapon"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
@@ -626,19 +637,19 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""f9136273-ab72-40a8-b130-92f5f599633c"",
|
||||
""id"": ""0c338080-389d-49b4-8925-d1468dbf0e24"",
|
||||
""path"": ""<Keyboard>/f"",
|
||||
""interactions"": ""Press(behavior=1)"",
|
||||
""interactions"": ""Hold"",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""FastSwitchMainWeapon"",
|
||||
""action"": ""RouletteSwitchMainWeapon"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""0c338080-389d-49b4-8925-d1468dbf0e24"",
|
||||
""path"": ""<Keyboard>/f"",
|
||||
""id"": ""474b9871-71cd-415f-94e2-41c5eeb60156"",
|
||||
""path"": ""<Keyboard>/r"",
|
||||
""interactions"": ""Hold"",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
@@ -716,11 +727,11 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
m_Player_UseSupportEquipment2 = m_Player.FindAction("UseSupportEquipment2", throwIfNotFound: true);
|
||||
m_Player_UseSupportEquipment3 = m_Player.FindAction("UseSupportEquipment3", throwIfNotFound: true);
|
||||
m_Player_OpenInventory = m_Player.FindAction("OpenInventory", throwIfNotFound: true);
|
||||
m_Player_SwitchMainWeapon = m_Player.FindAction("SwitchMainWeapon", throwIfNotFound: true);
|
||||
m_Player_SwitchPreviousMainWeapon = m_Player.FindAction("SwitchPreviousMainWeapon", throwIfNotFound: true);
|
||||
m_Player_SwitchNextMainWeapon = m_Player.FindAction("SwitchNextMainWeapon", throwIfNotFound: true);
|
||||
m_Player_Walk = m_Player.FindAction("Walk", throwIfNotFound: true);
|
||||
m_Player_FlyUp = m_Player.FindAction("FlyUp", throwIfNotFound: true);
|
||||
m_Player_LockOnTarget = m_Player.FindAction("LockOnTarget", throwIfNotFound: true);
|
||||
m_Player_FastSwitchMainWeapon = m_Player.FindAction("FastSwitchMainWeapon", throwIfNotFound: true);
|
||||
m_Player_RouletteSwitchMainWeapon = m_Player.FindAction("RouletteSwitchMainWeapon", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
@@ -817,11 +828,11 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
private readonly InputAction m_Player_UseSupportEquipment2;
|
||||
private readonly InputAction m_Player_UseSupportEquipment3;
|
||||
private readonly InputAction m_Player_OpenInventory;
|
||||
private readonly InputAction m_Player_SwitchMainWeapon;
|
||||
private readonly InputAction m_Player_SwitchPreviousMainWeapon;
|
||||
private readonly InputAction m_Player_SwitchNextMainWeapon;
|
||||
private readonly InputAction m_Player_Walk;
|
||||
private readonly InputAction m_Player_FlyUp;
|
||||
private readonly InputAction m_Player_LockOnTarget;
|
||||
private readonly InputAction m_Player_FastSwitchMainWeapon;
|
||||
private readonly InputAction m_Player_RouletteSwitchMainWeapon;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "Player".
|
||||
@@ -895,9 +906,13 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// </summary>
|
||||
public InputAction @OpenInventory => m_Wrapper.m_Player_OpenInventory;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/SwitchMainWeapon".
|
||||
/// Provides access to the underlying input action "Player/SwitchPreviousMainWeapon".
|
||||
/// </summary>
|
||||
public InputAction @SwitchMainWeapon => m_Wrapper.m_Player_SwitchMainWeapon;
|
||||
public InputAction @SwitchPreviousMainWeapon => m_Wrapper.m_Player_SwitchPreviousMainWeapon;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/SwitchNextMainWeapon".
|
||||
/// </summary>
|
||||
public InputAction @SwitchNextMainWeapon => m_Wrapper.m_Player_SwitchNextMainWeapon;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Walk".
|
||||
/// </summary>
|
||||
@@ -911,10 +926,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// </summary>
|
||||
public InputAction @LockOnTarget => m_Wrapper.m_Player_LockOnTarget;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/FastSwitchMainWeapon".
|
||||
/// </summary>
|
||||
public InputAction @FastSwitchMainWeapon => m_Wrapper.m_Player_FastSwitchMainWeapon;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/RouletteSwitchMainWeapon".
|
||||
/// </summary>
|
||||
public InputAction @RouletteSwitchMainWeapon => m_Wrapper.m_Player_RouletteSwitchMainWeapon;
|
||||
@@ -989,9 +1000,12 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@OpenInventory.started += instance.OnOpenInventory;
|
||||
@OpenInventory.performed += instance.OnOpenInventory;
|
||||
@OpenInventory.canceled += instance.OnOpenInventory;
|
||||
@SwitchMainWeapon.started += instance.OnSwitchMainWeapon;
|
||||
@SwitchMainWeapon.performed += instance.OnSwitchMainWeapon;
|
||||
@SwitchMainWeapon.canceled += instance.OnSwitchMainWeapon;
|
||||
@SwitchPreviousMainWeapon.started += instance.OnSwitchPreviousMainWeapon;
|
||||
@SwitchPreviousMainWeapon.performed += instance.OnSwitchPreviousMainWeapon;
|
||||
@SwitchPreviousMainWeapon.canceled += instance.OnSwitchPreviousMainWeapon;
|
||||
@SwitchNextMainWeapon.started += instance.OnSwitchNextMainWeapon;
|
||||
@SwitchNextMainWeapon.performed += instance.OnSwitchNextMainWeapon;
|
||||
@SwitchNextMainWeapon.canceled += instance.OnSwitchNextMainWeapon;
|
||||
@Walk.started += instance.OnWalk;
|
||||
@Walk.performed += instance.OnWalk;
|
||||
@Walk.canceled += instance.OnWalk;
|
||||
@@ -1001,9 +1015,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@LockOnTarget.started += instance.OnLockOnTarget;
|
||||
@LockOnTarget.performed += instance.OnLockOnTarget;
|
||||
@LockOnTarget.canceled += instance.OnLockOnTarget;
|
||||
@FastSwitchMainWeapon.started += instance.OnFastSwitchMainWeapon;
|
||||
@FastSwitchMainWeapon.performed += instance.OnFastSwitchMainWeapon;
|
||||
@FastSwitchMainWeapon.canceled += instance.OnFastSwitchMainWeapon;
|
||||
@RouletteSwitchMainWeapon.started += instance.OnRouletteSwitchMainWeapon;
|
||||
@RouletteSwitchMainWeapon.performed += instance.OnRouletteSwitchMainWeapon;
|
||||
@RouletteSwitchMainWeapon.canceled += instance.OnRouletteSwitchMainWeapon;
|
||||
@@ -1063,9 +1074,12 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@OpenInventory.started -= instance.OnOpenInventory;
|
||||
@OpenInventory.performed -= instance.OnOpenInventory;
|
||||
@OpenInventory.canceled -= instance.OnOpenInventory;
|
||||
@SwitchMainWeapon.started -= instance.OnSwitchMainWeapon;
|
||||
@SwitchMainWeapon.performed -= instance.OnSwitchMainWeapon;
|
||||
@SwitchMainWeapon.canceled -= instance.OnSwitchMainWeapon;
|
||||
@SwitchPreviousMainWeapon.started -= instance.OnSwitchPreviousMainWeapon;
|
||||
@SwitchPreviousMainWeapon.performed -= instance.OnSwitchPreviousMainWeapon;
|
||||
@SwitchPreviousMainWeapon.canceled -= instance.OnSwitchPreviousMainWeapon;
|
||||
@SwitchNextMainWeapon.started -= instance.OnSwitchNextMainWeapon;
|
||||
@SwitchNextMainWeapon.performed -= instance.OnSwitchNextMainWeapon;
|
||||
@SwitchNextMainWeapon.canceled -= instance.OnSwitchNextMainWeapon;
|
||||
@Walk.started -= instance.OnWalk;
|
||||
@Walk.performed -= instance.OnWalk;
|
||||
@Walk.canceled -= instance.OnWalk;
|
||||
@@ -1075,9 +1089,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@LockOnTarget.started -= instance.OnLockOnTarget;
|
||||
@LockOnTarget.performed -= instance.OnLockOnTarget;
|
||||
@LockOnTarget.canceled -= instance.OnLockOnTarget;
|
||||
@FastSwitchMainWeapon.started -= instance.OnFastSwitchMainWeapon;
|
||||
@FastSwitchMainWeapon.performed -= instance.OnFastSwitchMainWeapon;
|
||||
@FastSwitchMainWeapon.canceled -= instance.OnFastSwitchMainWeapon;
|
||||
@RouletteSwitchMainWeapon.started -= instance.OnRouletteSwitchMainWeapon;
|
||||
@RouletteSwitchMainWeapon.performed -= instance.OnRouletteSwitchMainWeapon;
|
||||
@RouletteSwitchMainWeapon.canceled -= instance.OnRouletteSwitchMainWeapon;
|
||||
@@ -1279,12 +1290,19 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnOpenInventory(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "SwitchMainWeapon" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
||||
/// Method invoked when associated input action "SwitchPreviousMainWeapon" 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 OnSwitchMainWeapon(InputAction.CallbackContext context);
|
||||
void OnSwitchPreviousMainWeapon(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "SwitchNextMainWeapon" 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 OnSwitchNextMainWeapon(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Walk" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
||||
/// </summary>
|
||||
@@ -1307,13 +1325,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnLockOnTarget(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "FastSwitchMainWeapon" 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 OnFastSwitchMainWeapon(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "RouletteSwitchMainWeapon" 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" />
|
||||
|
||||
Reference in New Issue
Block a user