slimecing

a fighting game featuring slimes and swords
Log | Files | Refs | README

TestAddingInputAction.cs (812B)


      1 using System;
      2 using UnityEngine;
      3 using UnityEngine.InputSystem;
      4 using UnityEngine.InputSystem.Users;
      5 using UnityEngine.Serialization;
      6 
      7 namespace Slimecing.TestScripts
      8 {
      9     public class TestAddingInputAction : MonoBehaviour
     10     {
     11         //[SerializeField] internal InputActionAsset _inputActionAsset;
     12         [SerializeField] private InputAction inputAction;
     13         [SerializeField] private PlayerInput playerInput;
     14         [SerializeField] private InputActionReference inputActionReference;
     15         /*private void Start()
     16         {
     17             foreach (var binding in inputAction.bindings)
     18             {
     19                 inputActionReference.action.AddBinding(binding).WithInteractions(inputAction.interactions)
     20                     .WithProcessors(inputAction.processors);
     21             }
     22         }*/
     23     }
     24 }