protected override void InteractInput()
    {
        if (InputHandle.GetSitterInteractKey())
        {
            Debug.Log("Interacting...");
            CheckInteract(LayerMask.GetMask("Interactable"));
            _anim.SetBool("Fix", true);
        }
        else
        {
            _anim.SetBool("Fix", false);
        }

        if (InputHandle.GetSitterPickUpKey())
        {
            if (child == null)
            {
                Debug.Log("Picking up...");
                CheckInteract(LayerMask.GetMask("Pickupable"));
            }
            else
            {
                //drop child
                Drop();
            }
        }
    }
Exemple #2
0
    protected override void InputStuff()//
    {
        if (InputHandle.GetSitterInteractKey())
        {
            CheckInteract();
        }

        if (InputHandle.GetSitterPickUpKey())
        {
            PickUp();
        }

        Move(InputHandle.GetSitterMovement());
    }