Add new wall GameObjects and update projectile damage handling; enhance physics manager settings
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Weapons
|
||||
other.TryGetComponent<Health>(out var health);
|
||||
if (other.gameObject == Owner) return;
|
||||
|
||||
health.TakeDamage(Damage);
|
||||
health?.TakeDamage(Damage);
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user