Exemplo n.º 1
0
    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();
            }
        }
    }
Exemplo n.º 2
0
    protected override void InputStuff()//
    {
        if (InputHandle.GetSitterInteractKey())
        {
            CheckInteract();
        }

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

        Move(InputHandle.GetSitterMovement());
    }
Exemplo n.º 3
0
    private void Update()
    {
        if (SceneManager.GetActiveScene().name == "Menu")
        {
            if (InputHandle.GetSitterInteractKey())
            {
                SceneManager.LoadScene("KazooMadness");
            }
        }

        if (SceneManager.GetActiveScene().name == "BabyWin" || SceneManager.GetActiveScene().name == "SitterWin")
        {
            if (InputHandle.GetSitterInteractKey())
            {
                SceneManager.LoadScene("Menu");
            }
        }
    }