2026-06-18 많은 플레이어 수정사항
This commit is contained in:
@@ -118,6 +118,15 @@ public @GameInput()
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Interact"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""c7e3a1f0-1111-4abc-8def-000000000001"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -153,6 +162,28 @@ public @GameInput()
|
||||
""action"": ""Key_Right"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""c7e3a1f0-2222-4abc-8def-000000000002"",
|
||||
""path"": ""<Keyboard>/e"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Interact"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""c7e3a1f0-3333-4abc-8def-000000000003"",
|
||||
""path"": ""<XRController>{LeftHand}/{PrimaryButton}"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Interact"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -164,6 +195,7 @@ public @GameInput()
|
||||
m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true);
|
||||
m_Player_Key_Left = m_Player.FindAction("Key_Left", throwIfNotFound: true);
|
||||
m_Player_Key_Right = m_Player.FindAction("Key_Right", throwIfNotFound: true);
|
||||
m_Player_Interact = m_Player.FindAction("Interact", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
~@GameInput()
|
||||
@@ -247,6 +279,7 @@ public int FindBinding(InputBinding bindingMask, out InputAction action)
|
||||
private readonly InputAction m_Player_Jump;
|
||||
private readonly InputAction m_Player_Key_Left;
|
||||
private readonly InputAction m_Player_Key_Right;
|
||||
private readonly InputAction m_Player_Interact;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "Player".
|
||||
/// </summary>
|
||||
@@ -271,6 +304,10 @@ public struct PlayerActions
|
||||
/// </summary>
|
||||
public InputAction @Key_Right => m_Wrapper.m_Player_Key_Right;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Interact".
|
||||
/// </summary>
|
||||
public InputAction @Interact => m_Wrapper.m_Player_Interact;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action map instance.
|
||||
/// </summary>
|
||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||
@@ -305,6 +342,9 @@ public void AddCallbacks(IPlayerActions instance)
|
||||
@Key_Right.started += instance.OnKey_Right;
|
||||
@Key_Right.performed += instance.OnKey_Right;
|
||||
@Key_Right.canceled += instance.OnKey_Right;
|
||||
@Interact.started += instance.OnInteract;
|
||||
@Interact.performed += instance.OnInteract;
|
||||
@Interact.canceled += instance.OnInteract;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -325,6 +365,9 @@ private void UnregisterCallbacks(IPlayerActions instance)
|
||||
@Key_Right.started -= instance.OnKey_Right;
|
||||
@Key_Right.performed -= instance.OnKey_Right;
|
||||
@Key_Right.canceled -= instance.OnKey_Right;
|
||||
@Interact.started -= instance.OnInteract;
|
||||
@Interact.performed -= instance.OnInteract;
|
||||
@Interact.canceled -= instance.OnInteract;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -386,5 +429,12 @@ public interface IPlayerActions
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnKey_Right(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Interact" 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 OnInteract(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +32,15 @@
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
},
|
||||
{
|
||||
"name": "Interact",
|
||||
"type": "Button",
|
||||
"id": "c7e3a1f0-1111-4abc-8def-000000000001",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
@@ -67,6 +76,28 @@
|
||||
"action": "Key_Right",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "c7e3a1f0-2222-4abc-8def-000000000002",
|
||||
"path": "<Keyboard>/e",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "Interact",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "c7e3a1f0-3333-4abc-8def-000000000003",
|
||||
"path": "<XRController>{LeftHand}/{PrimaryButton}",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "Interact",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user