예제 #1
0
    private void GetInput()
    {
//        horizontalInput = Input.GetAxis("Horizontal");
//        verticalInput = Input.GetAxis("Vertical");
//        breaking = Input.GetButton("Brake");
        if (input != null)
        {
            input.GetInputs(this);
        }
    }
예제 #2
0
    private void GetInput()
    {
//        horizontalInput = Input.GetAxis("Horizontal");
//        verticalInput = Input.GetAxis("Vertical");
//        breaking = Input.GetButton("Brake");
        if (input != null)
        {
            CarInputs inputs = input.GetInputs(this);
            horizontalInput = inputs.horizontal;
            verticalInput   = inputs.vertical;
            braking         = inputs.braking;

//            input.GetInputs(this);
        }
    }