public void setup()
        {
            InputService = Substitute.For <IInputService>();

            actions         = new ActionMap();
            actions.actions = new InputAction[] {
                new InputAction {
                    action           = Action.Jump,
                    inputControlType = InControl.InputControlType.Action1
                }
            };

            manager = new KeyboardGameplayInputManager(ref actions);
            manager.InputService = InputService;
        }
Exemplo n.º 2
0
 protected new void Awake()
 {
     base.Awake();
     Manager = new KeyboardGameplayInputManager(ref actionMap);
 }
 public void TearDown()
 {
     manager      = null;
     actions      = null;
     InputService = null;
 }