Jelajahi Sumber

修改资源

= 4 tahun lalu
induk
melakukan
cc426efc4d

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

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

TEMPAT SAMPAH
Assets/Resources/Entities/Bullet.png


+ 1 - 1
Assets/Resources/Entities/Bullet.png.meta

@@ -47,7 +47,7 @@ TextureImporter:
   spriteMeshType: 1
   alignment: 0
   spritePivot: {x: 0.5, y: 0.5}
-  spritePixelsToUnits: 32
+  spritePixelsToUnits: 128
   spriteBorder: {x: 0, y: 0, z: 0, w: 0}
   spriteGenerateFallbackPhysicsShape: 1
   alphaUsage: 1

+ 2 - 2
Assets/Resources/Entities/Bullet.prefab

@@ -77,7 +77,7 @@ SpriteRenderer:
   m_SortingLayer: 0
   m_SortingOrder: 0
   m_Sprite: {fileID: 21300000, guid: c18dd1aef6ed3fd439185e642d44c053, type: 3}
-  m_Color: {r: 0.952361, g: 1, b: 0, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_FlipX: 0
   m_FlipY: 0
   m_DrawMode: 0
@@ -104,7 +104,7 @@ BoxCollider2D:
   m_SpriteTilingProperty:
     border: {x: 0, y: 0, z: 0, w: 0}
     pivot: {x: 0.5, y: 0.5}
-    oldSize: {x: 0.3125, y: 0.59375}
+    oldSize: {x: 0.5, y: 0.5}
     newSize: {x: 1, y: 1}
     adaptiveTilingThreshold: 0.5
     drawMode: 0

TEMPAT SAMPAH
Assets/Resources/Entities/EnemyArrow.png


+ 1 - 1
Assets/Resources/Entities/EnemyArrow.png.meta

@@ -47,7 +47,7 @@ TextureImporter:
   spriteMeshType: 1
   alignment: 0
   spritePivot: {x: 0.5, y: 0.5}
-  spritePixelsToUnits: 32
+  spritePixelsToUnits: 128
   spriteBorder: {x: 0, y: 0, z: 0, w: 0}
   spriteGenerateFallbackPhysicsShape: 1
   alphaUsage: 1