示例#1
0
 public InputManager(InputConfiguration config, IEngineBehaviour engineBehaviour)
 {
     this.config          = config;
     this.engineBehaviour = engineBehaviour;
     samplersMap          = new Dictionary <string, InputSampler>(System.StringComparer.Ordinal);
     blockingUIs          = new Dictionary <IManagedUI, string[]>();
     blockedSamplers      = new HashSet <string>();
 }
示例#2
0
        /// <param name="config">Input manager configuration asset.</param>
        /// <param name="binding">Binding to trigger input.</param>
        /// <param name="objectTriggers">Objects to trigger input.</param>
        public InputSampler(InputConfiguration config, InputBinding binding, IEnumerable <GameObject> objectTriggers)
        {
            Binding             = binding;
            this.config         = config;
            this.objectTriggers = objectTriggers != null ? new HashSet <GameObject>(objectTriggers) : new HashSet <GameObject>();

            #if ENABLE_INPUT_SYSTEM && INPUT_SYSTEM_AVAILABLE
            if (ObjectUtils.IsValid(config.InputActions))
            {
                inputAction = config.InputActions.FindActionMap("Naninovel")?.FindAction(binding.Name);
            }
            inputAction?.Enable();
            #endif
        }
示例#3
0
 public InputManager(InputConfiguration config)
 {
     Configuration = config;
 }
示例#4
0
 public InputManager(InputConfiguration config, IEngineBehaviour engineBehaviour)
 {
     Configuration        = config;
     this.engineBehaviour = engineBehaviour;
 }