added reload animation and bullet limit
This commit is contained in:
@@ -127,6 +127,15 @@ public partial class @GameInputAction: IInputActionCollection2, IDisposable
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""ADS Camera"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""bc014086-71fa-432a-8e3c-3e2003c5244b"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -217,6 +226,17 @@ public partial class @GameInputAction: IInputActionCollection2, IDisposable
|
||||
""action"": ""Shoot"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""f5bad540-cf37-4957-ad4a-1e5a5e723890"",
|
||||
""path"": ""<Mouse>/rightButton"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""ADS Camera"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -229,6 +249,7 @@ public partial class @GameInputAction: IInputActionCollection2, IDisposable
|
||||
m_Player_Look = m_Player.FindAction("Look", throwIfNotFound: true);
|
||||
m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true);
|
||||
m_Player_Shoot = m_Player.FindAction("Shoot", throwIfNotFound: true);
|
||||
m_Player_ADSCamera = m_Player.FindAction("ADS Camera", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
~@GameInputAction()
|
||||
@@ -313,6 +334,7 @@ public partial class @GameInputAction: IInputActionCollection2, IDisposable
|
||||
private readonly InputAction m_Player_Look;
|
||||
private readonly InputAction m_Player_Jump;
|
||||
private readonly InputAction m_Player_Shoot;
|
||||
private readonly InputAction m_Player_ADSCamera;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "Player".
|
||||
/// </summary>
|
||||
@@ -341,6 +363,10 @@ public partial class @GameInputAction: IInputActionCollection2, IDisposable
|
||||
/// </summary>
|
||||
public InputAction @Shoot => m_Wrapper.m_Player_Shoot;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/ADSCamera".
|
||||
/// </summary>
|
||||
public InputAction @ADSCamera => m_Wrapper.m_Player_ADSCamera;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action map instance.
|
||||
/// </summary>
|
||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||
@@ -378,6 +404,9 @@ public partial class @GameInputAction: IInputActionCollection2, IDisposable
|
||||
@Shoot.started += instance.OnShoot;
|
||||
@Shoot.performed += instance.OnShoot;
|
||||
@Shoot.canceled += instance.OnShoot;
|
||||
@ADSCamera.started += instance.OnADSCamera;
|
||||
@ADSCamera.performed += instance.OnADSCamera;
|
||||
@ADSCamera.canceled += instance.OnADSCamera;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -401,6 +430,9 @@ public partial class @GameInputAction: IInputActionCollection2, IDisposable
|
||||
@Shoot.started -= instance.OnShoot;
|
||||
@Shoot.performed -= instance.OnShoot;
|
||||
@Shoot.canceled -= instance.OnShoot;
|
||||
@ADSCamera.started -= instance.OnADSCamera;
|
||||
@ADSCamera.performed -= instance.OnADSCamera;
|
||||
@ADSCamera.canceled -= instance.OnADSCamera;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -469,5 +501,12 @@ public partial class @GameInputAction: IInputActionCollection2, IDisposable
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnShoot(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "ADS Camera" 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 OnADSCamera(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,15 @@
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
},
|
||||
{
|
||||
"name": "ADS Camera",
|
||||
"type": "Button",
|
||||
"id": "bc014086-71fa-432a-8e3c-3e2003c5244b",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
@@ -131,6 +140,17 @@
|
||||
"action": "Shoot",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "f5bad540-cf37-4957-ad4a-1e5a5e723890",
|
||||
"path": "<Mouse>/rightButton",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "ADS Camera",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user