void UpdateGrabKeyInput() { //Grab key pressed if (Input.GetButtonDown("Keyboard_Grab")) { ActionInput actionInput = new ActionInput(InputType.Grab); character.ActionInput(actionInput); } }
// Update is called once per frame void Update() { character.ActionInput(actionInput); }