멀티플레이어 지원
이동, 건설, 인터랙션, 공격 등
This commit is contained in:
@@ -199,6 +199,60 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Select1"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""9514c5c0-0f52-4aad-9190-8eaa582582af"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Select2"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""1f9606a7-fe64-4d40-8e7d-f52a60d8586e"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Select3"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""7ab3f504-268a-4863-9e06-9cd4d229b811"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Select4"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""31222006-ca06-4d72-9fb2-47b3ba098284"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Select5"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""7c26ea04-baab-4928-9fdb-21e56786479f"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Select6"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""131d2ab9-c3a9-4ff2-9c1a-349723005f20"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -575,6 +629,72 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""action"": ""Attack"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""aa3b572f-6e1b-42d3-8888-9a5ba4e40e8e"",
|
||||
""path"": ""<Keyboard>/1"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Select1"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""d9400340-cb26-41fb-ac57-b2396f92fa02"",
|
||||
""path"": ""<Keyboard>/2"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Select2"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""b4e51cdc-c9f0-49e9-a57c-114e99e6cda7"",
|
||||
""path"": ""<Keyboard>/3"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Select3"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""fc5a035c-c7cf-46ed-b283-881d42435491"",
|
||||
""path"": ""<Keyboard>/4"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Select4"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""68ef307e-2425-4ef1-8f21-ec7b3018135c"",
|
||||
""path"": ""<Keyboard>/5"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Select5"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""f8d7c66f-bd8c-4351-b3d1-4931b17e703c"",
|
||||
""path"": ""<Keyboard>/6"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Select6"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1172,6 +1292,12 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
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_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);
|
||||
m_Player_Select4 = m_Player.FindAction("Select4", throwIfNotFound: true);
|
||||
m_Player_Select5 = m_Player.FindAction("Select5", throwIfNotFound: true);
|
||||
m_Player_Select6 = m_Player.FindAction("Select6", throwIfNotFound: true);
|
||||
// UI
|
||||
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
|
||||
m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
|
||||
@@ -1277,6 +1403,12 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
private readonly InputAction m_Player_Build;
|
||||
private readonly InputAction m_Player_Cancel;
|
||||
private readonly InputAction m_Player_Attack;
|
||||
private readonly InputAction m_Player_Select1;
|
||||
private readonly InputAction m_Player_Select2;
|
||||
private readonly InputAction m_Player_Select3;
|
||||
private readonly InputAction m_Player_Select4;
|
||||
private readonly InputAction m_Player_Select5;
|
||||
private readonly InputAction m_Player_Select6;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "Player".
|
||||
/// </summary>
|
||||
@@ -1337,6 +1469,30 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// </summary>
|
||||
public InputAction @Attack => m_Wrapper.m_Player_Attack;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Select1".
|
||||
/// </summary>
|
||||
public InputAction @Select1 => m_Wrapper.m_Player_Select1;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Select2".
|
||||
/// </summary>
|
||||
public InputAction @Select2 => m_Wrapper.m_Player_Select2;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Select3".
|
||||
/// </summary>
|
||||
public InputAction @Select3 => m_Wrapper.m_Player_Select3;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Select4".
|
||||
/// </summary>
|
||||
public InputAction @Select4 => m_Wrapper.m_Player_Select4;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Select5".
|
||||
/// </summary>
|
||||
public InputAction @Select5 => m_Wrapper.m_Player_Select5;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Player/Select6".
|
||||
/// </summary>
|
||||
public InputAction @Select6 => m_Wrapper.m_Player_Select6;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action map instance.
|
||||
/// </summary>
|
||||
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
||||
@@ -1398,6 +1554,24 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@Attack.started += instance.OnAttack;
|
||||
@Attack.performed += instance.OnAttack;
|
||||
@Attack.canceled += instance.OnAttack;
|
||||
@Select1.started += instance.OnSelect1;
|
||||
@Select1.performed += instance.OnSelect1;
|
||||
@Select1.canceled += instance.OnSelect1;
|
||||
@Select2.started += instance.OnSelect2;
|
||||
@Select2.performed += instance.OnSelect2;
|
||||
@Select2.canceled += instance.OnSelect2;
|
||||
@Select3.started += instance.OnSelect3;
|
||||
@Select3.performed += instance.OnSelect3;
|
||||
@Select3.canceled += instance.OnSelect3;
|
||||
@Select4.started += instance.OnSelect4;
|
||||
@Select4.performed += instance.OnSelect4;
|
||||
@Select4.canceled += instance.OnSelect4;
|
||||
@Select5.started += instance.OnSelect5;
|
||||
@Select5.performed += instance.OnSelect5;
|
||||
@Select5.canceled += instance.OnSelect5;
|
||||
@Select6.started += instance.OnSelect6;
|
||||
@Select6.performed += instance.OnSelect6;
|
||||
@Select6.canceled += instance.OnSelect6;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1445,6 +1619,24 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@Attack.started -= instance.OnAttack;
|
||||
@Attack.performed -= instance.OnAttack;
|
||||
@Attack.canceled -= instance.OnAttack;
|
||||
@Select1.started -= instance.OnSelect1;
|
||||
@Select1.performed -= instance.OnSelect1;
|
||||
@Select1.canceled -= instance.OnSelect1;
|
||||
@Select2.started -= instance.OnSelect2;
|
||||
@Select2.performed -= instance.OnSelect2;
|
||||
@Select2.canceled -= instance.OnSelect2;
|
||||
@Select3.started -= instance.OnSelect3;
|
||||
@Select3.performed -= instance.OnSelect3;
|
||||
@Select3.canceled -= instance.OnSelect3;
|
||||
@Select4.started -= instance.OnSelect4;
|
||||
@Select4.performed -= instance.OnSelect4;
|
||||
@Select4.canceled -= instance.OnSelect4;
|
||||
@Select5.started -= instance.OnSelect5;
|
||||
@Select5.performed -= instance.OnSelect5;
|
||||
@Select5.canceled -= instance.OnSelect5;
|
||||
@Select6.started -= instance.OnSelect6;
|
||||
@Select6.performed -= instance.OnSelect6;
|
||||
@Select6.canceled -= instance.OnSelect6;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1829,6 +2021,48 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnAttack(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>
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnSelect1(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Select2" 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 OnSelect2(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Select3" 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 OnSelect3(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Select4" 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 OnSelect4(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Select5" 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 OnSelect5(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Select6" 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 OnSelect6(InputAction.CallbackContext context);
|
||||
}
|
||||
/// <summary>
|
||||
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "UI" which allows adding and removing callbacks.
|
||||
|
||||
Reference in New Issue
Block a user