diff --git a/Assets/Prefabs/GameManager.prefab b/Assets/Prefabs/GameManager.prefab index c7fa0b47..0963278f 100644 --- a/Assets/Prefabs/GameManager.prefab +++ b/Assets/Prefabs/GameManager.prefab @@ -122,7 +122,7 @@ MonoBehaviour: crouchSpineRotationOffset2: {x: 0, y: 15, z: 90} projectileRaycastMask: serializedVersion: 2 - m_Bits: 4294967291 + m_Bits: 5889 drawLineFromGun: 0 --- !u!114 &114529712737653322 MonoBehaviour: diff --git a/Assets/Scripts/Behaviours/Weapon.cs b/Assets/Scripts/Behaviours/Weapon.cs index ff65bb6c..1e44321b 100644 --- a/Assets/Scripts/Behaviours/Weapon.cs +++ b/Assets/Scripts/Behaviours/Weapon.cs @@ -621,7 +621,7 @@ namespace SanAndreasUnity.Behaviours { // if target object has damageable script, inflict damage to it - var damageable = hit.transform.GetComponent (); + var damageable = hit.transform.GetComponentInParent (); if (damageable) { // ray hit something that can be damaged