From 2793e1464aa7c55f7539a7a4f4e1fec32206c3fb Mon Sep 17 00:00:00 2001 From: trotFunky Date: Thu, 19 Sep 2019 15:01:15 +0200 Subject: [PATCH] Added independent layers for bullets --- Assets/Prefabs/EnemyBullet.prefab | 2 +- Assets/Prefabs/Player.prefab | 4 ++-- Assets/Prefabs/PlayerBullet.prefab | 4 ++-- ProjectSettings/Physics2DSettings.asset | 2 +- ProjectSettings/TagManager.asset | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Assets/Prefabs/EnemyBullet.prefab b/Assets/Prefabs/EnemyBullet.prefab index 2141f6a..b2affea 100644 --- a/Assets/Prefabs/EnemyBullet.prefab +++ b/Assets/Prefabs/EnemyBullet.prefab @@ -13,7 +13,7 @@ GameObject: - component: {fileID: 7819471670070814052} - component: {fileID: 7819471670070814051} - component: {fileID: 7819471670070814050} - m_Layer: 9 + m_Layer: 10 m_Name: EnemyBullet m_TagString: Untagged m_Icon: {fileID: 0} diff --git a/Assets/Prefabs/Player.prefab b/Assets/Prefabs/Player.prefab index 17e2e67..884acb0 100644 --- a/Assets/Prefabs/Player.prefab +++ b/Assets/Prefabs/Player.prefab @@ -74,7 +74,7 @@ SpriteRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 - m_Sprite: {fileID: 21300000, guid: 1fe77f169e8b4289c95cae0cff058bee, type: 3} + m_Sprite: {fileID: 21300000, guid: 694b327da5c00d01398eb9ea19758eb7, type: 3} m_Color: {r: 1, g: 1, b: 1, a: 1} m_FlipX: 0 m_FlipY: 0 @@ -157,4 +157,4 @@ MonoBehaviour: _shotsPerSecond: 2 _bullet: {fileID: 4369719273071165554, guid: 5dcbc4e2919ffde8a9d89514fd293e8e, type: 3} _direction: {x: 1, y: 0} - _offset: {x: 1, y: 0} + _offset: {x: 1, y: 0.125} diff --git a/Assets/Prefabs/PlayerBullet.prefab b/Assets/Prefabs/PlayerBullet.prefab index 4a408e7..697e3a5 100644 --- a/Assets/Prefabs/PlayerBullet.prefab +++ b/Assets/Prefabs/PlayerBullet.prefab @@ -13,7 +13,7 @@ GameObject: - component: {fileID: 4369719273071165559} - component: {fileID: 4369719273071165552} - component: {fileID: 4369719273071165553} - m_Layer: 8 + m_Layer: 11 m_Name: PlayerBullet m_TagString: Untagged m_Icon: {fileID: 0} @@ -124,5 +124,5 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: _damage: 1 - _speed: 5 + _speed: 9 _direction: {x: 1, y: 0} diff --git a/ProjectSettings/Physics2DSettings.asset b/ProjectSettings/Physics2DSettings.asset index b110650..1b96f11 100644 --- a/ProjectSettings/Physics2DSettings.asset +++ b/ProjectSettings/Physics2DSettings.asset @@ -53,4 +53,4 @@ Physics2DSettings: m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} - m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffdffcffffffffffffffffffffdffeffffdffdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffdff0ffffffffffffffffffffdff6ffffdff9ffffdff1ffffdff2ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset index eec2bfa..b2f446a 100644 --- a/ProjectSettings/TagManager.asset +++ b/ProjectSettings/TagManager.asset @@ -15,8 +15,8 @@ TagManager: - - Player - Enemy - - - - + - Enemy_Bullet + - Player_Bullet - - -