// Update is called once per frame void Update() { playerAnimation.SetBool("isGrabObject", isPullingObject()); if (isPullingObject()) { groundScript.SetAllowFlip(false); movingObject(); } }