액션 및 인터랙션 정의 및 기존 인터랙션 및 채광 코드 구조 개선
This commit is contained in:
@@ -192,7 +192,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Attack"",
|
||||
""name"": ""Action"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""23075c94-90f6-437e-be80-4f36760bdf24"",
|
||||
""expectedControlType"": """",
|
||||
@@ -626,7 +626,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Attack"",
|
||||
""action"": ""Action"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
@@ -1291,7 +1291,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
m_Player_ToggleBuild = m_Player.FindAction("ToggleBuild", throwIfNotFound: true);
|
||||
m_Player_Build = m_Player.FindAction("Build", throwIfNotFound: true);
|
||||
m_Player_Cancel = m_Player.FindAction("Cancel", throwIfNotFound: true);
|
||||
m_Player_Attack = m_Player.FindAction("Attack", throwIfNotFound: true);
|
||||
m_Player_Action = m_Player.FindAction("Action", throwIfNotFound: true);
|
||||
m_Player_Select1 = m_Player.FindAction("Select1", throwIfNotFound: true);
|
||||
m_Player_Select2 = m_Player.FindAction("Select2", throwIfNotFound: true);
|
||||
m_Player_Select3 = m_Player.FindAction("Select3", throwIfNotFound: true);
|
||||
@@ -1402,7 +1402,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
private readonly InputAction m_Player_ToggleBuild;
|
||||
private readonly InputAction m_Player_Build;
|
||||
private readonly InputAction m_Player_Cancel;
|
||||
private readonly InputAction m_Player_Attack;
|
||||
private readonly InputAction m_Player_Action;
|
||||
private readonly InputAction m_Player_Select1;
|
||||
private readonly InputAction m_Player_Select2;
|
||||
private readonly InputAction m_Player_Select3;
|
||||
@@ -1465,9 +1465,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// </summary>
|
||||
public InputAction @Cancel => m_Wrapper.m_Player_Cancel;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Attack".
|
||||
/// Provides access to the underlying input action "Player/Action".
|
||||
/// </summary>
|
||||
public InputAction @Attack => m_Wrapper.m_Player_Attack;
|
||||
public InputAction @Action => m_Wrapper.m_Player_Action;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Select1".
|
||||
/// </summary>
|
||||
@@ -1551,9 +1551,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@Cancel.started += instance.OnCancel;
|
||||
@Cancel.performed += instance.OnCancel;
|
||||
@Cancel.canceled += instance.OnCancel;
|
||||
@Attack.started += instance.OnAttack;
|
||||
@Attack.performed += instance.OnAttack;
|
||||
@Attack.canceled += instance.OnAttack;
|
||||
@Action.started += instance.OnAction;
|
||||
@Action.performed += instance.OnAction;
|
||||
@Action.canceled += instance.OnAction;
|
||||
@Select1.started += instance.OnSelect1;
|
||||
@Select1.performed += instance.OnSelect1;
|
||||
@Select1.canceled += instance.OnSelect1;
|
||||
@@ -1616,9 +1616,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@Cancel.started -= instance.OnCancel;
|
||||
@Cancel.performed -= instance.OnCancel;
|
||||
@Cancel.canceled -= instance.OnCancel;
|
||||
@Attack.started -= instance.OnAttack;
|
||||
@Attack.performed -= instance.OnAttack;
|
||||
@Attack.canceled -= instance.OnAttack;
|
||||
@Action.started -= instance.OnAction;
|
||||
@Action.performed -= instance.OnAction;
|
||||
@Action.canceled -= instance.OnAction;
|
||||
@Select1.started -= instance.OnSelect1;
|
||||
@Select1.performed -= instance.OnSelect1;
|
||||
@Select1.canceled -= instance.OnSelect1;
|
||||
@@ -2015,12 +2015,12 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnCancel(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Attack" 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 "Action" 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 OnAttack(InputAction.CallbackContext context);
|
||||
void OnAction(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Select1" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user