private void jumpTrail() { if (!groundCheck.isGrounded() && timeBtwJumpTrail <= 0) { effects.play("jumpEffect", groundCheck.getGroundCheckPosition(), Quaternion.identity, destroyTime); timeBtwJumpTrail = startTimeBtwJumpTrail; } timeBtwJumpTrail -= Time.deltaTime; }
private void land() { if (!groundedPreviousState && grounded && timeBtwLand <= 0) { if (playerClose) { SoundManager.PlaySound("land"); } effects.play("dustEffect", groundCheck.transform.position, Quaternion.identity, destroyTime); if (shakeCamera) { CameraConfig.shake(); } timeBtwLand = startTimeBtwLand; } timeBtwLand -= Time.deltaTime; }