+ Red Sprite V3(이누야샤) 캐릭터 추가 + 03.CombatTest Scene(전투 테스트용 씬) 추가 + 4방향 Idle, Walk, Dash, ComboAttack 구현 + ComboAttack 애니메이션 복제 및 수정
1042 lines
45 KiB
C#
1042 lines
45 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
|
// version 1.7.0
|
|
// from Assets/02.Scripts/BlueWater.inputactions
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine.InputSystem;
|
|
using UnityEngine.InputSystem.Utilities;
|
|
|
|
public partial class @BlueWater: IInputActionCollection2, IDisposable
|
|
{
|
|
public InputActionAsset asset { get; }
|
|
public @BlueWater()
|
|
{
|
|
asset = InputActionAsset.FromJson(@"{
|
|
""name"": ""BlueWater"",
|
|
""maps"": [
|
|
{
|
|
""name"": ""Player"",
|
|
""id"": ""9fe03cc1-5cd3-4b79-a95e-461613cb242e"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Move"",
|
|
""type"": ""Value"",
|
|
""id"": ""e46165d9-8066-4400-8950-9b7d4bb9ca75"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""AssaultMode"",
|
|
""type"": ""Button"",
|
|
""id"": ""7d9814fb-48e0-4717-91c3-0c7b7d99972c"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Interaction"",
|
|
""type"": ""Button"",
|
|
""id"": ""367e7267-d329-439d-9806-5e960b8114b5"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""InteractionHold"",
|
|
""type"": ""Button"",
|
|
""id"": ""a28fe5f5-b2a2-4794-8f99-fa2494aedfc3"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold(duration=1)"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Zkey"",
|
|
""type"": ""Button"",
|
|
""id"": ""548e1aff-2de9-4dcc-8fe3-6c20ee0e74d4"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""TakeAim"",
|
|
""type"": ""Button"",
|
|
""id"": ""e520b814-2e0b-4d05-853e-ac1a35bb6b51"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Cancel"",
|
|
""type"": ""Button"",
|
|
""id"": ""c8a82170-8a07-4432-b22f-9ec40486ed27"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Targeting"",
|
|
""type"": ""Button"",
|
|
""id"": ""bb26b6ad-feae-49d8-a4d8-3633bcabfcab"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Tap"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""TargetingHold"",
|
|
""type"": ""Button"",
|
|
""id"": ""c3e552b9-a9be-4d38-8cde-27cc60f7888f"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold(duration=1)"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""SpawnInIsladnPlayer"",
|
|
""type"": ""Button"",
|
|
""id"": ""1558b861-5937-46f7-8887-3f322044049b"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""CancelHold"",
|
|
""type"": ""Button"",
|
|
""id"": ""b5508379-f9b3-45f9-ba2e-c16fb67bb36a"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold(duration=1)"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Attack"",
|
|
""type"": ""Button"",
|
|
""id"": ""5042e547-e870-4479-8263-b143f4d03597"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Dash"",
|
|
""type"": ""Button"",
|
|
""id"": ""c68960a5-036f-4304-8d05-25778470ecfd"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""UseSkill"",
|
|
""type"": ""Button"",
|
|
""id"": ""bde6ac11-b3da-4cdd-a8a9-b11db01d47e3"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Mouse0"",
|
|
""type"": ""Button"",
|
|
""id"": ""36407aa9-c5a9-4654-8452-ac5c52abf32f"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Mouse1"",
|
|
""type"": ""Button"",
|
|
""id"": ""2d9a2349-b5a2-4926-a6e8-41abf2e24a3a"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""ShiftKey"",
|
|
""type"": ""Button"",
|
|
""id"": ""6e363e5e-d384-4b7e-a9df-91159f5523ad"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""BuildMode"",
|
|
""type"": ""Button"",
|
|
""id"": ""c66de4c8-5638-4085-9856-105d2d2af71b"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": ""WASD"",
|
|
""id"": ""4dc5b54c-0e59-461e-a12d-470900925a36"",
|
|
""path"": ""2DVector"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""07083b18-8b38-4c90-ae78-28c2927a5f82"",
|
|
""path"": ""<Keyboard>/w"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""3b75699e-1063-4230-9ac3-95292c44d2bd"",
|
|
""path"": ""<Keyboard>/s"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""6bdc290d-3bc8-4e00-b868-1977d3f2267d"",
|
|
""path"": ""<Keyboard>/a"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""03206e08-b0b8-4a95-9bf8-a3e4fd10d4db"",
|
|
""path"": ""<Keyboard>/d"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""8e9091c9-b649-4709-bae7-3ca464124529"",
|
|
""path"": ""<Keyboard>/v"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""AssaultMode"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""334d8c88-f0ee-43d9-b62d-a1fdbd1bc338"",
|
|
""path"": ""<Keyboard>/e"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Interaction"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""df7a5259-c313-4b14-9cca-9e1acfc0a31a"",
|
|
""path"": ""<Keyboard>/e"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""InteractionHold"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""3db50dad-5cf1-4778-a8a6-27a83398045b"",
|
|
""path"": ""<Keyboard>/z"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Zkey"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""74928808-e5f4-4341-997b-0c0b40aa4b4a"",
|
|
""path"": ""<Keyboard>/space"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""TakeAim"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""f3c7c6ff-93c4-4bfe-9039-804d7c340f52"",
|
|
""path"": ""<Keyboard>/f"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Cancel"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""671ada78-e8be-4dcf-80af-2c4468d01253"",
|
|
""path"": ""<Keyboard>/q"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Targeting"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""d05dfab0-611f-4f60-b424-f14d98636c55"",
|
|
""path"": ""<Keyboard>/q"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""TargetingHold"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""95f474a1-8d98-4b85-8fd9-fa128951f69f"",
|
|
""path"": ""<Keyboard>/t"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""SpawnInIsladnPlayer"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""3e2f42b7-0dd3-4c8b-bdd5-9be3254465c0"",
|
|
""path"": ""<Keyboard>/f"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""CancelHold"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""bb845af5-adc5-4848-b4a8-ceb3508cd585"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""c5b5e8bc-aca9-40bb-8e57-6bb1349f08d0"",
|
|
""path"": ""<Keyboard>/k"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""5a134753-6868-4dec-9b0e-5839b48f7417"",
|
|
""path"": ""<Keyboard>/space"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Dash"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""f1364876-ede7-4831-b23e-532d6995031e"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""UseSkill"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""5b299ee0-2df8-4980-b81e-af5faccd0a8e"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Mouse0"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""9a454696-c796-4188-88db-0c0b82e77c98"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Mouse1"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""8d33ba7e-c3f4-4c6d-bd6a-11a48f13fdb6"",
|
|
""path"": ""<Keyboard>/shift"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""ShiftKey"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""3d467a6e-a464-4bbb-b64f-e3317989fb87"",
|
|
""path"": ""<Keyboard>/r"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""BuildMode"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Camera"",
|
|
""id"": ""06b461c0-220a-44f8-a03e-0302537ffe0c"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Zoom"",
|
|
""type"": ""Value"",
|
|
""id"": ""26cdda4e-9797-43df-a511-7745f1de2567"",
|
|
""expectedControlType"": ""Axis"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Rotate"",
|
|
""type"": ""Button"",
|
|
""id"": ""d9db46b6-0228-4e7f-8b51-53cae3ccc330"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": """",
|
|
""id"": ""6cbe83f3-bb32-4b85-9419-f88897bd4fc4"",
|
|
""path"": ""<Mouse>/scroll/y"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Zoom"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""e68715cb-964b-4648-9cef-3afefbe84441"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Rotate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""4bc83c87-5345-4fb2-b39a-ac975f7bf47e"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Rotate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Unit"",
|
|
""id"": ""72deb161-83b9-4d14-8bcf-0bd0c122f76f"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""SelectUnit"",
|
|
""type"": ""Button"",
|
|
""id"": ""2c1978d2-b4be-453a-9413-7b54903dbf38"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""CancelSelectedUnit"",
|
|
""type"": ""Button"",
|
|
""id"": ""952be7b5-8952-47b7-a2db-ced6517d161a"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""MoveUnit"",
|
|
""type"": ""Button"",
|
|
""id"": ""2fe8434e-42e2-4b88-b0b3-0b2b4f8596a8"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": """",
|
|
""id"": ""2daa9903-ce4b-4c8d-9347-5f59b09e8674"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""SelectUnit"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""76632044-5edc-4dba-97aa-64d5173c78ec"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""MoveUnit"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""e768abd0-e04f-4441-b6b3-09f456041cd8"",
|
|
""path"": ""<Keyboard>/escape"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""CancelSelectedUnit"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
""controlSchemes"": [
|
|
{
|
|
""name"": ""Keyboard&Mouse"",
|
|
""bindingGroup"": ""Keyboard&Mouse"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Keyboard>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
},
|
|
{
|
|
""devicePath"": ""<Mouse>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Gamepad"",
|
|
""bindingGroup"": ""Gamepad"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Gamepad>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}");
|
|
// Player
|
|
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
|
|
m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
|
|
m_Player_AssaultMode = m_Player.FindAction("AssaultMode", throwIfNotFound: true);
|
|
m_Player_Interaction = m_Player.FindAction("Interaction", throwIfNotFound: true);
|
|
m_Player_InteractionHold = m_Player.FindAction("InteractionHold", throwIfNotFound: true);
|
|
m_Player_Zkey = m_Player.FindAction("Zkey", throwIfNotFound: true);
|
|
m_Player_TakeAim = m_Player.FindAction("TakeAim", throwIfNotFound: true);
|
|
m_Player_Cancel = m_Player.FindAction("Cancel", throwIfNotFound: true);
|
|
m_Player_Targeting = m_Player.FindAction("Targeting", throwIfNotFound: true);
|
|
m_Player_TargetingHold = m_Player.FindAction("TargetingHold", throwIfNotFound: true);
|
|
m_Player_SpawnInIsladnPlayer = m_Player.FindAction("SpawnInIsladnPlayer", throwIfNotFound: true);
|
|
m_Player_CancelHold = m_Player.FindAction("CancelHold", throwIfNotFound: true);
|
|
m_Player_Attack = m_Player.FindAction("Attack", throwIfNotFound: true);
|
|
m_Player_Dash = m_Player.FindAction("Dash", throwIfNotFound: true);
|
|
m_Player_UseSkill = m_Player.FindAction("UseSkill", throwIfNotFound: true);
|
|
m_Player_Mouse0 = m_Player.FindAction("Mouse0", throwIfNotFound: true);
|
|
m_Player_Mouse1 = m_Player.FindAction("Mouse1", throwIfNotFound: true);
|
|
m_Player_ShiftKey = m_Player.FindAction("ShiftKey", throwIfNotFound: true);
|
|
m_Player_BuildMode = m_Player.FindAction("BuildMode", throwIfNotFound: true);
|
|
// Camera
|
|
m_Camera = asset.FindActionMap("Camera", throwIfNotFound: true);
|
|
m_Camera_Zoom = m_Camera.FindAction("Zoom", throwIfNotFound: true);
|
|
m_Camera_Rotate = m_Camera.FindAction("Rotate", throwIfNotFound: true);
|
|
// Unit
|
|
m_Unit = asset.FindActionMap("Unit", throwIfNotFound: true);
|
|
m_Unit_SelectUnit = m_Unit.FindAction("SelectUnit", throwIfNotFound: true);
|
|
m_Unit_CancelSelectedUnit = m_Unit.FindAction("CancelSelectedUnit", throwIfNotFound: true);
|
|
m_Unit_MoveUnit = m_Unit.FindAction("MoveUnit", throwIfNotFound: true);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
UnityEngine.Object.Destroy(asset);
|
|
}
|
|
|
|
public InputBinding? bindingMask
|
|
{
|
|
get => asset.bindingMask;
|
|
set => asset.bindingMask = value;
|
|
}
|
|
|
|
public ReadOnlyArray<InputDevice>? devices
|
|
{
|
|
get => asset.devices;
|
|
set => asset.devices = value;
|
|
}
|
|
|
|
public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;
|
|
|
|
public bool Contains(InputAction action)
|
|
{
|
|
return asset.Contains(action);
|
|
}
|
|
|
|
public IEnumerator<InputAction> GetEnumerator()
|
|
{
|
|
return asset.GetEnumerator();
|
|
}
|
|
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return GetEnumerator();
|
|
}
|
|
|
|
public void Enable()
|
|
{
|
|
asset.Enable();
|
|
}
|
|
|
|
public void Disable()
|
|
{
|
|
asset.Disable();
|
|
}
|
|
|
|
public IEnumerable<InputBinding> bindings => asset.bindings;
|
|
|
|
public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false)
|
|
{
|
|
return asset.FindAction(actionNameOrId, throwIfNotFound);
|
|
}
|
|
|
|
public int FindBinding(InputBinding bindingMask, out InputAction action)
|
|
{
|
|
return asset.FindBinding(bindingMask, out action);
|
|
}
|
|
|
|
// Player
|
|
private readonly InputActionMap m_Player;
|
|
private List<IPlayerActions> m_PlayerActionsCallbackInterfaces = new List<IPlayerActions>();
|
|
private readonly InputAction m_Player_Move;
|
|
private readonly InputAction m_Player_AssaultMode;
|
|
private readonly InputAction m_Player_Interaction;
|
|
private readonly InputAction m_Player_InteractionHold;
|
|
private readonly InputAction m_Player_Zkey;
|
|
private readonly InputAction m_Player_TakeAim;
|
|
private readonly InputAction m_Player_Cancel;
|
|
private readonly InputAction m_Player_Targeting;
|
|
private readonly InputAction m_Player_TargetingHold;
|
|
private readonly InputAction m_Player_SpawnInIsladnPlayer;
|
|
private readonly InputAction m_Player_CancelHold;
|
|
private readonly InputAction m_Player_Attack;
|
|
private readonly InputAction m_Player_Dash;
|
|
private readonly InputAction m_Player_UseSkill;
|
|
private readonly InputAction m_Player_Mouse0;
|
|
private readonly InputAction m_Player_Mouse1;
|
|
private readonly InputAction m_Player_ShiftKey;
|
|
private readonly InputAction m_Player_BuildMode;
|
|
public struct PlayerActions
|
|
{
|
|
private @BlueWater m_Wrapper;
|
|
public PlayerActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Move => m_Wrapper.m_Player_Move;
|
|
public InputAction @AssaultMode => m_Wrapper.m_Player_AssaultMode;
|
|
public InputAction @Interaction => m_Wrapper.m_Player_Interaction;
|
|
public InputAction @InteractionHold => m_Wrapper.m_Player_InteractionHold;
|
|
public InputAction @Zkey => m_Wrapper.m_Player_Zkey;
|
|
public InputAction @TakeAim => m_Wrapper.m_Player_TakeAim;
|
|
public InputAction @Cancel => m_Wrapper.m_Player_Cancel;
|
|
public InputAction @Targeting => m_Wrapper.m_Player_Targeting;
|
|
public InputAction @TargetingHold => m_Wrapper.m_Player_TargetingHold;
|
|
public InputAction @SpawnInIsladnPlayer => m_Wrapper.m_Player_SpawnInIsladnPlayer;
|
|
public InputAction @CancelHold => m_Wrapper.m_Player_CancelHold;
|
|
public InputAction @Attack => m_Wrapper.m_Player_Attack;
|
|
public InputAction @Dash => m_Wrapper.m_Player_Dash;
|
|
public InputAction @UseSkill => m_Wrapper.m_Player_UseSkill;
|
|
public InputAction @Mouse0 => m_Wrapper.m_Player_Mouse0;
|
|
public InputAction @Mouse1 => m_Wrapper.m_Player_Mouse1;
|
|
public InputAction @ShiftKey => m_Wrapper.m_Player_ShiftKey;
|
|
public InputAction @BuildMode => m_Wrapper.m_Player_BuildMode;
|
|
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); }
|
|
public void AddCallbacks(IPlayerActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_PlayerActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_PlayerActionsCallbackInterfaces.Add(instance);
|
|
@Move.started += instance.OnMove;
|
|
@Move.performed += instance.OnMove;
|
|
@Move.canceled += instance.OnMove;
|
|
@AssaultMode.started += instance.OnAssaultMode;
|
|
@AssaultMode.performed += instance.OnAssaultMode;
|
|
@AssaultMode.canceled += instance.OnAssaultMode;
|
|
@Interaction.started += instance.OnInteraction;
|
|
@Interaction.performed += instance.OnInteraction;
|
|
@Interaction.canceled += instance.OnInteraction;
|
|
@InteractionHold.started += instance.OnInteractionHold;
|
|
@InteractionHold.performed += instance.OnInteractionHold;
|
|
@InteractionHold.canceled += instance.OnInteractionHold;
|
|
@Zkey.started += instance.OnZkey;
|
|
@Zkey.performed += instance.OnZkey;
|
|
@Zkey.canceled += instance.OnZkey;
|
|
@TakeAim.started += instance.OnTakeAim;
|
|
@TakeAim.performed += instance.OnTakeAim;
|
|
@TakeAim.canceled += instance.OnTakeAim;
|
|
@Cancel.started += instance.OnCancel;
|
|
@Cancel.performed += instance.OnCancel;
|
|
@Cancel.canceled += instance.OnCancel;
|
|
@Targeting.started += instance.OnTargeting;
|
|
@Targeting.performed += instance.OnTargeting;
|
|
@Targeting.canceled += instance.OnTargeting;
|
|
@TargetingHold.started += instance.OnTargetingHold;
|
|
@TargetingHold.performed += instance.OnTargetingHold;
|
|
@TargetingHold.canceled += instance.OnTargetingHold;
|
|
@SpawnInIsladnPlayer.started += instance.OnSpawnInIsladnPlayer;
|
|
@SpawnInIsladnPlayer.performed += instance.OnSpawnInIsladnPlayer;
|
|
@SpawnInIsladnPlayer.canceled += instance.OnSpawnInIsladnPlayer;
|
|
@CancelHold.started += instance.OnCancelHold;
|
|
@CancelHold.performed += instance.OnCancelHold;
|
|
@CancelHold.canceled += instance.OnCancelHold;
|
|
@Attack.started += instance.OnAttack;
|
|
@Attack.performed += instance.OnAttack;
|
|
@Attack.canceled += instance.OnAttack;
|
|
@Dash.started += instance.OnDash;
|
|
@Dash.performed += instance.OnDash;
|
|
@Dash.canceled += instance.OnDash;
|
|
@UseSkill.started += instance.OnUseSkill;
|
|
@UseSkill.performed += instance.OnUseSkill;
|
|
@UseSkill.canceled += instance.OnUseSkill;
|
|
@Mouse0.started += instance.OnMouse0;
|
|
@Mouse0.performed += instance.OnMouse0;
|
|
@Mouse0.canceled += instance.OnMouse0;
|
|
@Mouse1.started += instance.OnMouse1;
|
|
@Mouse1.performed += instance.OnMouse1;
|
|
@Mouse1.canceled += instance.OnMouse1;
|
|
@ShiftKey.started += instance.OnShiftKey;
|
|
@ShiftKey.performed += instance.OnShiftKey;
|
|
@ShiftKey.canceled += instance.OnShiftKey;
|
|
@BuildMode.started += instance.OnBuildMode;
|
|
@BuildMode.performed += instance.OnBuildMode;
|
|
@BuildMode.canceled += instance.OnBuildMode;
|
|
}
|
|
|
|
private void UnregisterCallbacks(IPlayerActions instance)
|
|
{
|
|
@Move.started -= instance.OnMove;
|
|
@Move.performed -= instance.OnMove;
|
|
@Move.canceled -= instance.OnMove;
|
|
@AssaultMode.started -= instance.OnAssaultMode;
|
|
@AssaultMode.performed -= instance.OnAssaultMode;
|
|
@AssaultMode.canceled -= instance.OnAssaultMode;
|
|
@Interaction.started -= instance.OnInteraction;
|
|
@Interaction.performed -= instance.OnInteraction;
|
|
@Interaction.canceled -= instance.OnInteraction;
|
|
@InteractionHold.started -= instance.OnInteractionHold;
|
|
@InteractionHold.performed -= instance.OnInteractionHold;
|
|
@InteractionHold.canceled -= instance.OnInteractionHold;
|
|
@Zkey.started -= instance.OnZkey;
|
|
@Zkey.performed -= instance.OnZkey;
|
|
@Zkey.canceled -= instance.OnZkey;
|
|
@TakeAim.started -= instance.OnTakeAim;
|
|
@TakeAim.performed -= instance.OnTakeAim;
|
|
@TakeAim.canceled -= instance.OnTakeAim;
|
|
@Cancel.started -= instance.OnCancel;
|
|
@Cancel.performed -= instance.OnCancel;
|
|
@Cancel.canceled -= instance.OnCancel;
|
|
@Targeting.started -= instance.OnTargeting;
|
|
@Targeting.performed -= instance.OnTargeting;
|
|
@Targeting.canceled -= instance.OnTargeting;
|
|
@TargetingHold.started -= instance.OnTargetingHold;
|
|
@TargetingHold.performed -= instance.OnTargetingHold;
|
|
@TargetingHold.canceled -= instance.OnTargetingHold;
|
|
@SpawnInIsladnPlayer.started -= instance.OnSpawnInIsladnPlayer;
|
|
@SpawnInIsladnPlayer.performed -= instance.OnSpawnInIsladnPlayer;
|
|
@SpawnInIsladnPlayer.canceled -= instance.OnSpawnInIsladnPlayer;
|
|
@CancelHold.started -= instance.OnCancelHold;
|
|
@CancelHold.performed -= instance.OnCancelHold;
|
|
@CancelHold.canceled -= instance.OnCancelHold;
|
|
@Attack.started -= instance.OnAttack;
|
|
@Attack.performed -= instance.OnAttack;
|
|
@Attack.canceled -= instance.OnAttack;
|
|
@Dash.started -= instance.OnDash;
|
|
@Dash.performed -= instance.OnDash;
|
|
@Dash.canceled -= instance.OnDash;
|
|
@UseSkill.started -= instance.OnUseSkill;
|
|
@UseSkill.performed -= instance.OnUseSkill;
|
|
@UseSkill.canceled -= instance.OnUseSkill;
|
|
@Mouse0.started -= instance.OnMouse0;
|
|
@Mouse0.performed -= instance.OnMouse0;
|
|
@Mouse0.canceled -= instance.OnMouse0;
|
|
@Mouse1.started -= instance.OnMouse1;
|
|
@Mouse1.performed -= instance.OnMouse1;
|
|
@Mouse1.canceled -= instance.OnMouse1;
|
|
@ShiftKey.started -= instance.OnShiftKey;
|
|
@ShiftKey.performed -= instance.OnShiftKey;
|
|
@ShiftKey.canceled -= instance.OnShiftKey;
|
|
@BuildMode.started -= instance.OnBuildMode;
|
|
@BuildMode.performed -= instance.OnBuildMode;
|
|
@BuildMode.canceled -= instance.OnBuildMode;
|
|
}
|
|
|
|
public void RemoveCallbacks(IPlayerActions instance)
|
|
{
|
|
if (m_Wrapper.m_PlayerActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(IPlayerActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public PlayerActions @Player => new PlayerActions(this);
|
|
|
|
// Camera
|
|
private readonly InputActionMap m_Camera;
|
|
private List<ICameraActions> m_CameraActionsCallbackInterfaces = new List<ICameraActions>();
|
|
private readonly InputAction m_Camera_Zoom;
|
|
private readonly InputAction m_Camera_Rotate;
|
|
public struct CameraActions
|
|
{
|
|
private @BlueWater m_Wrapper;
|
|
public CameraActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Zoom => m_Wrapper.m_Camera_Zoom;
|
|
public InputAction @Rotate => m_Wrapper.m_Camera_Rotate;
|
|
public InputActionMap Get() { return m_Wrapper.m_Camera; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(CameraActions set) { return set.Get(); }
|
|
public void AddCallbacks(ICameraActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_CameraActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_CameraActionsCallbackInterfaces.Add(instance);
|
|
@Zoom.started += instance.OnZoom;
|
|
@Zoom.performed += instance.OnZoom;
|
|
@Zoom.canceled += instance.OnZoom;
|
|
@Rotate.started += instance.OnRotate;
|
|
@Rotate.performed += instance.OnRotate;
|
|
@Rotate.canceled += instance.OnRotate;
|
|
}
|
|
|
|
private void UnregisterCallbacks(ICameraActions instance)
|
|
{
|
|
@Zoom.started -= instance.OnZoom;
|
|
@Zoom.performed -= instance.OnZoom;
|
|
@Zoom.canceled -= instance.OnZoom;
|
|
@Rotate.started -= instance.OnRotate;
|
|
@Rotate.performed -= instance.OnRotate;
|
|
@Rotate.canceled -= instance.OnRotate;
|
|
}
|
|
|
|
public void RemoveCallbacks(ICameraActions instance)
|
|
{
|
|
if (m_Wrapper.m_CameraActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(ICameraActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_CameraActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_CameraActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public CameraActions @Camera => new CameraActions(this);
|
|
|
|
// Unit
|
|
private readonly InputActionMap m_Unit;
|
|
private List<IUnitActions> m_UnitActionsCallbackInterfaces = new List<IUnitActions>();
|
|
private readonly InputAction m_Unit_SelectUnit;
|
|
private readonly InputAction m_Unit_CancelSelectedUnit;
|
|
private readonly InputAction m_Unit_MoveUnit;
|
|
public struct UnitActions
|
|
{
|
|
private @BlueWater m_Wrapper;
|
|
public UnitActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @SelectUnit => m_Wrapper.m_Unit_SelectUnit;
|
|
public InputAction @CancelSelectedUnit => m_Wrapper.m_Unit_CancelSelectedUnit;
|
|
public InputAction @MoveUnit => m_Wrapper.m_Unit_MoveUnit;
|
|
public InputActionMap Get() { return m_Wrapper.m_Unit; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(UnitActions set) { return set.Get(); }
|
|
public void AddCallbacks(IUnitActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_UnitActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_UnitActionsCallbackInterfaces.Add(instance);
|
|
@SelectUnit.started += instance.OnSelectUnit;
|
|
@SelectUnit.performed += instance.OnSelectUnit;
|
|
@SelectUnit.canceled += instance.OnSelectUnit;
|
|
@CancelSelectedUnit.started += instance.OnCancelSelectedUnit;
|
|
@CancelSelectedUnit.performed += instance.OnCancelSelectedUnit;
|
|
@CancelSelectedUnit.canceled += instance.OnCancelSelectedUnit;
|
|
@MoveUnit.started += instance.OnMoveUnit;
|
|
@MoveUnit.performed += instance.OnMoveUnit;
|
|
@MoveUnit.canceled += instance.OnMoveUnit;
|
|
}
|
|
|
|
private void UnregisterCallbacks(IUnitActions instance)
|
|
{
|
|
@SelectUnit.started -= instance.OnSelectUnit;
|
|
@SelectUnit.performed -= instance.OnSelectUnit;
|
|
@SelectUnit.canceled -= instance.OnSelectUnit;
|
|
@CancelSelectedUnit.started -= instance.OnCancelSelectedUnit;
|
|
@CancelSelectedUnit.performed -= instance.OnCancelSelectedUnit;
|
|
@CancelSelectedUnit.canceled -= instance.OnCancelSelectedUnit;
|
|
@MoveUnit.started -= instance.OnMoveUnit;
|
|
@MoveUnit.performed -= instance.OnMoveUnit;
|
|
@MoveUnit.canceled -= instance.OnMoveUnit;
|
|
}
|
|
|
|
public void RemoveCallbacks(IUnitActions instance)
|
|
{
|
|
if (m_Wrapper.m_UnitActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(IUnitActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_UnitActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_UnitActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public UnitActions @Unit => new UnitActions(this);
|
|
private int m_KeyboardMouseSchemeIndex = -1;
|
|
public InputControlScheme KeyboardMouseScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("Keyboard&Mouse");
|
|
return asset.controlSchemes[m_KeyboardMouseSchemeIndex];
|
|
}
|
|
}
|
|
private int m_GamepadSchemeIndex = -1;
|
|
public InputControlScheme GamepadScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad");
|
|
return asset.controlSchemes[m_GamepadSchemeIndex];
|
|
}
|
|
}
|
|
public interface IPlayerActions
|
|
{
|
|
void OnMove(InputAction.CallbackContext context);
|
|
void OnAssaultMode(InputAction.CallbackContext context);
|
|
void OnInteraction(InputAction.CallbackContext context);
|
|
void OnInteractionHold(InputAction.CallbackContext context);
|
|
void OnZkey(InputAction.CallbackContext context);
|
|
void OnTakeAim(InputAction.CallbackContext context);
|
|
void OnCancel(InputAction.CallbackContext context);
|
|
void OnTargeting(InputAction.CallbackContext context);
|
|
void OnTargetingHold(InputAction.CallbackContext context);
|
|
void OnSpawnInIsladnPlayer(InputAction.CallbackContext context);
|
|
void OnCancelHold(InputAction.CallbackContext context);
|
|
void OnAttack(InputAction.CallbackContext context);
|
|
void OnDash(InputAction.CallbackContext context);
|
|
void OnUseSkill(InputAction.CallbackContext context);
|
|
void OnMouse0(InputAction.CallbackContext context);
|
|
void OnMouse1(InputAction.CallbackContext context);
|
|
void OnShiftKey(InputAction.CallbackContext context);
|
|
void OnBuildMode(InputAction.CallbackContext context);
|
|
}
|
|
public interface ICameraActions
|
|
{
|
|
void OnZoom(InputAction.CallbackContext context);
|
|
void OnRotate(InputAction.CallbackContext context);
|
|
}
|
|
public interface IUnitActions
|
|
{
|
|
void OnSelectUnit(InputAction.CallbackContext context);
|
|
void OnCancelSelectedUnit(InputAction.CallbackContext context);
|
|
void OnMoveUnit(InputAction.CallbackContext context);
|
|
}
|
|
}
|