= 4 лет назад
Родитель
Сommit
b192881706

BIN
Assets/Resources/Audio/bullet_explode.ogg


BIN
Assets/Resources/Audio/fire.ogg


BIN
Assets/Resources/Audio/jump.ogg


+ 1 - 1
Assets/Resources/Entities/Bullet.cs

@@ -5,7 +5,7 @@ using UnityEngine;
 public class Bullet : MonoBehaviour {
 
     private void OnCollisionEnter2D(Collision2D collision) {
-        if (!collision.gameObject.CompareTag("Border")) AudioM.Play("bullet_explode", 0.4f);
+        if (!collision.gameObject.CompareTag("Border")) AudioM.Play("bullet_explode", 0.2f);
         transform.localScale = Vector3.zero; Destroy(gameObject, 1);
     }
 

+ 1 - 1
Assets/Resources/Entities/EntityBase.cs

@@ -36,7 +36,7 @@ public abstract class EntityBase : MonoBehaviour {
         if (isLand) jumpWolf = jumpWolfTime;
         if (jumpBuffer > 0 && jumpWolf > 0 && jumping < 0) {
             // ²¥·ÅÒôЧ
-            AudioM.Play("jump", 0.6f);
+            AudioM.Play("jump", 0.7f);
 
             speedY = jumpForce;
             jumpBuffer = 0;

+ 1 - 1
Assets/Resources/Entities/Player.cs

@@ -95,7 +95,7 @@ public class Player : EntityBase {
         }
         // 开火
         if (InputM.GetKeyEvent(InputM.KeyType.Fire) && currentBullet > 0 && currentShootDelay <= 0f && currentReloadDelay <= 0f) {
-            AudioM.Play("fire", 0.25f);
+            AudioM.Play("fire", 0.6f);
             currentBullet--; currentShootDelay = shootDelay;
             Vector2 fromPos = transform.position + Vector3.up * ((canCrouch && isPressingCrouch()) ? 0.55f : 1.3f);
             Vector2 toPos = AspectUtility.cam.ScreenToWorldPoint(Input.mousePosition);