added endscreen

This commit is contained in:
MrTorex committed 2026-02-24 10:33:33 +03:00
1 parent a33eb50ca0
commit 2b01c50795
15 files changed
+989 -88

No files matched your search

+2 -2
View File
@@ -47,12 +47,12 @@ namespace Code.Gameplay.Weapons
var damageable = hit.collider.GetComponentInParent<IDamageable>();
damageable?.TakeDamage(_damage);
if (impactEffect != null)
if (impactEffect)
{
Instantiate(impactEffect, hit.point, Quaternion.LookRotation(hit.normal));
}
if (impactSound != null && _audioSource != null)
if (impactSound && _audioSource)
{
_audioSource.PlayOneShot(impactSound);
}