Example #1
0
    private void FixedUpdate()
    {
        pic_charContr.Move(MovementDirectionCalc());

        if (Input.GetButtonDown("Hide"))
        {
            pic_charContr.DoAction(PlayerCharacterController.ActionListElement.HIDE);
        }
        else if (Input.GetButtonDown("Interact"))
        {
            pic_charContr.DoAction(PlayerCharacterController.ActionListElement.INTERACT);
        }
        else if (Input.GetButtonDown("Dash"))
        {
            pic_charContr.DoAction(PlayerCharacterController.ActionListElement.DASH);
        }
        else if (Input.GetButtonDown("Use"))
        {
            pic_charContr.DoAction(PlayerCharacterController.ActionListElement.USE);
        }
    }