void UpdateGrounding(bool isGrounded) { anim.SetBool(AirBorn, !isGrounded); //if just landed if (isGrounded && !wasGrounded) { playerFX.LandingPoof(); playerMesh.localRotation = Quaternion.identity; } wasGrounded = isGrounded; }