private void Update() { if (player.IsDead) { return; } if (IsGrounded && Input.GetButton(inputJump)) { jump = true; } if (Input.GetButtonDown(inputFire)) { if (Egg == null && !isLayingEgg) { var h = Input.GetAxis(inputHorizontal); if (h == 0 || Input.GetAxis(inputVertical) < 0) { LayEgg(); } else { ThrowEgg(h > 0); } } else if (Egg != null) { Egg.Explode(); } } }