게임클리어 이벤트

This commit is contained in:
2026-06-23 17:03:38 +09:00
parent fecc7556d6
commit b85855d4d6
25 changed files with 1317 additions and 28 deletions

View File

@@ -127,6 +127,15 @@ public @GameInput()
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""DialogNext"",
""type"": ""Button"",
""id"": ""c7e3a1f0-4444-4abc-8def-000000000004"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
@@ -184,6 +193,28 @@ public @GameInput()
""action"": ""Interact"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""c7e3a1f0-5555-4abc-8def-000000000005"",
""path"": ""<XRController>{RightHand}/{SecondaryButton}"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""DialogNext"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""c7e3a1f0-6666-4abc-8def-000000000006"",
""path"": ""<Keyboard>/space"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""DialogNext"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
@@ -196,6 +227,7 @@ public @GameInput()
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);
m_Player_DialogNext = m_Player.FindAction("DialogNext", throwIfNotFound: true);
}
~@GameInput()
@@ -280,6 +312,7 @@ public int FindBinding(InputBinding bindingMask, out InputAction action)
private readonly InputAction m_Player_Key_Left;
private readonly InputAction m_Player_Key_Right;
private readonly InputAction m_Player_Interact;
private readonly InputAction m_Player_DialogNext;
/// <summary>
/// Provides access to input actions defined in input action map "Player".
/// </summary>
@@ -308,6 +341,10 @@ public struct PlayerActions
/// </summary>
public InputAction @Interact => m_Wrapper.m_Player_Interact;
/// <summary>
/// Provides access to the underlying input action "Player/DialogNext".
/// </summary>
public InputAction @DialogNext => m_Wrapper.m_Player_DialogNext;
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get() { return m_Wrapper.m_Player; }
@@ -345,6 +382,9 @@ public void AddCallbacks(IPlayerActions instance)
@Interact.started += instance.OnInteract;
@Interact.performed += instance.OnInteract;
@Interact.canceled += instance.OnInteract;
@DialogNext.started += instance.OnDialogNext;
@DialogNext.performed += instance.OnDialogNext;
@DialogNext.canceled += instance.OnDialogNext;
}
/// <summary>
@@ -368,6 +408,9 @@ private void UnregisterCallbacks(IPlayerActions instance)
@Interact.started -= instance.OnInteract;
@Interact.performed -= instance.OnInteract;
@Interact.canceled -= instance.OnInteract;
@DialogNext.started -= instance.OnDialogNext;
@DialogNext.performed -= instance.OnDialogNext;
@DialogNext.canceled -= instance.OnDialogNext;
}
/// <summary>
@@ -436,5 +479,12 @@ public interface IPlayerActions
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnInteract(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "DialogNext" 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 OnDialogNext(InputAction.CallbackContext context);
}
}

View File

@@ -41,6 +41,15 @@
"processors": "",
"interactions": "",
"initialStateCheck": false
},
{
"name": "DialogNext",
"type": "Button",
"id": "c7e3a1f0-4444-4abc-8def-000000000004",
"expectedControlType": "",
"processors": "",
"interactions": "",
"initialStateCheck": false
}
],
"bindings": [
@@ -98,6 +107,28 @@
"action": "Interact",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "c7e3a1f0-5555-4abc-8def-000000000005",
"path": "<XRController>{RightHand}/{SecondaryButton}",
"interactions": "",
"processors": "",
"groups": "",
"action": "DialogNext",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "c7e3a1f0-6666-4abc-8def-000000000006",
"path": "<Keyboard>/space",
"interactions": "",
"processors": "",
"groups": "",
"action": "DialogNext",
"isComposite": false,
"isPartOfComposite": false
}
]
}