예제 #1
0
 private void jumpTrail()
 {
     if (!groundCheck.isGrounded() && timeBtwJumpTrail <= 0)
     {
         effects.play("jumpEffect", groundCheck.getGroundCheckPosition(), Quaternion.identity, destroyTime);
         timeBtwJumpTrail = startTimeBtwJumpTrail;
     }
     timeBtwJumpTrail -= Time.deltaTime;
 }
예제 #2
0
 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;
 }