증거품 UI
This commit is contained in:
@@ -101,6 +101,36 @@ public @GameInput()
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false,
|
||||
""priority"": 0
|
||||
},
|
||||
{
|
||||
""name"": ""Evidence"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""a376bc33-e3e7-4409-84a5-3a74e05209dc"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false,
|
||||
""priority"": 0
|
||||
},
|
||||
{
|
||||
""name"": ""EvidencePrev"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""d56a4493-2d9d-4f00-be99-fd9f652685f5"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false,
|
||||
""priority"": 0
|
||||
},
|
||||
{
|
||||
""name"": ""EvidenceNext"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""f37ec740-b596-42d7-9e0a-ff755021724e"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false,
|
||||
""priority"": 0
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -114,6 +144,39 @@ public @GameInput()
|
||||
""action"": ""DialogNext"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""02a2ccf2-19c5-45da-a582-dcde4cf10401"",
|
||||
""path"": ""<Keyboard>/tab"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Evidence"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""05a7fb43-c937-4e50-bbee-7b220fa3b23a"",
|
||||
""path"": ""<Keyboard>/leftArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""EvidencePrev"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""cea0ef76-ea21-4c99-ac4d-c32851def55d"",
|
||||
""path"": ""<Keyboard>/rightArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""EvidenceNext"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -123,6 +186,9 @@ public @GameInput()
|
||||
// Player
|
||||
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
|
||||
m_Player_DialogNext = m_Player.FindAction("DialogNext", throwIfNotFound: true);
|
||||
m_Player_Evidence = m_Player.FindAction("Evidence", throwIfNotFound: true);
|
||||
m_Player_EvidencePrev = m_Player.FindAction("EvidencePrev", throwIfNotFound: true);
|
||||
m_Player_EvidenceNext = m_Player.FindAction("EvidenceNext", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
~@GameInput()
|
||||
@@ -204,6 +270,9 @@ public int FindBinding(InputBinding bindingMask, out InputAction action)
|
||||
private readonly InputActionMap m_Player;
|
||||
private List<IPlayerActions> m_PlayerActionsCallbackInterfaces = new List<IPlayerActions>();
|
||||
private readonly InputAction m_Player_DialogNext;
|
||||
private readonly InputAction m_Player_Evidence;
|
||||
private readonly InputAction m_Player_EvidencePrev;
|
||||
private readonly InputAction m_Player_EvidenceNext;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "Player".
|
||||
/// </summary>
|
||||
@@ -220,6 +289,18 @@ public struct PlayerActions
|
||||
/// </summary>
|
||||
public InputAction @DialogNext => m_Wrapper.m_Player_DialogNext;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Evidence".
|
||||
/// </summary>
|
||||
public InputAction @Evidence => m_Wrapper.m_Player_Evidence;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/EvidencePrev".
|
||||
/// </summary>
|
||||
public InputAction @EvidencePrev => m_Wrapper.m_Player_EvidencePrev;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/EvidenceNext".
|
||||
/// </summary>
|
||||
public InputAction @EvidenceNext => m_Wrapper.m_Player_EvidenceNext;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action map instance.
|
||||
/// </summary>
|
||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||
@@ -248,6 +329,15 @@ public void AddCallbacks(IPlayerActions instance)
|
||||
@DialogNext.started += instance.OnDialogNext;
|
||||
@DialogNext.performed += instance.OnDialogNext;
|
||||
@DialogNext.canceled += instance.OnDialogNext;
|
||||
@Evidence.started += instance.OnEvidence;
|
||||
@Evidence.performed += instance.OnEvidence;
|
||||
@Evidence.canceled += instance.OnEvidence;
|
||||
@EvidencePrev.started += instance.OnEvidencePrev;
|
||||
@EvidencePrev.performed += instance.OnEvidencePrev;
|
||||
@EvidencePrev.canceled += instance.OnEvidencePrev;
|
||||
@EvidenceNext.started += instance.OnEvidenceNext;
|
||||
@EvidenceNext.performed += instance.OnEvidenceNext;
|
||||
@EvidenceNext.canceled += instance.OnEvidenceNext;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -262,6 +352,15 @@ private void UnregisterCallbacks(IPlayerActions instance)
|
||||
@DialogNext.started -= instance.OnDialogNext;
|
||||
@DialogNext.performed -= instance.OnDialogNext;
|
||||
@DialogNext.canceled -= instance.OnDialogNext;
|
||||
@Evidence.started -= instance.OnEvidence;
|
||||
@Evidence.performed -= instance.OnEvidence;
|
||||
@Evidence.canceled -= instance.OnEvidence;
|
||||
@EvidencePrev.started -= instance.OnEvidencePrev;
|
||||
@EvidencePrev.performed -= instance.OnEvidencePrev;
|
||||
@EvidencePrev.canceled -= instance.OnEvidencePrev;
|
||||
@EvidenceNext.started -= instance.OnEvidenceNext;
|
||||
@EvidenceNext.performed -= instance.OnEvidenceNext;
|
||||
@EvidenceNext.canceled -= instance.OnEvidenceNext;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -309,5 +408,26 @@ public interface IPlayerActions
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnDialogNext(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Evidence" 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 OnEvidence(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "EvidencePrev" 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 OnEvidencePrev(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "EvidenceNext" 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 OnEvidenceNext(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,38 @@
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
"initialStateCheck": false,
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "Evidence",
|
||||
"type": "Button",
|
||||
"id": "a376bc33-e3e7-4409-84a5-3a74e05209dc",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false,
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "EvidencePrev",
|
||||
"type": "Button",
|
||||
"id": "d56a4493-2d9d-4f00-be99-fd9f652685f5",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false,
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"name": "EvidenceNext",
|
||||
"type": "Button",
|
||||
"id": "f37ec740-b596-42d7-9e0a-ff755021724e",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false,
|
||||
"priority": 0
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
@@ -27,6 +58,39 @@
|
||||
"action": "DialogNext",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "02a2ccf2-19c5-45da-a582-dcde4cf10401",
|
||||
"path": "<Keyboard>/tab",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "Evidence",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "05a7fb43-c937-4e50-bbee-7b220fa3b23a",
|
||||
"path": "<Keyboard>/leftArrow",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "EvidencePrev",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "cea0ef76-ea21-4c99-ac4d-c32851def55d",
|
||||
"path": "<Keyboard>/rightArrow",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "EvidenceNext",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user