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(); } } }
protected override void InputStuff()// { if (InputHandle.GetSitterInteractKey()) { CheckInteract(); } if (InputHandle.GetSitterPickUpKey()) { PickUp(); } Move(InputHandle.GetSitterMovement()); }
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"); } } }