Пример #1
0
 public void Awake()
 {
     controls = new InputSys();
     controls.Enable();
     controls.Player.Move.started   += ctx => Move(ctx);
     controls.Player.Move.started   += ctx => Move(ctx);
     controls.Player.Move.performed += ctx => Move(ctx);
     controls.Player.Move.canceled  += ctx => MoveEnd();
 }
Пример #2
0
    private void Awake()
    {
        controls = new InputSys();
        controls.Enable();

        controls.Player.Move.started   += ctx => Move(ctx);
        controls.Player.Move.performed += ctx => Move(ctx);
        controls.Player.Move.canceled  += ctx => MoveEnd();

        controls.Player.Accelerate.started   += ctx => Accel(ctx);
        controls.Player.Accelerate.performed += ctx => Accel(ctx);
        controls.Player.Accelerate.canceled  += ctx => AccelEnd();
    }
Пример #3
0
 public void Awake()
 {
     controls = new InputSys();
     controls.Enable();
     controls.Player.Move.performed += ctx => Rotate(ctx);
 }