added muzzle flash
This commit is contained in:
1 parent
1869fa7584
commit
a33eb50ca0
9 files changed
+5575
-6
No files matched your search
@@ -55,6 +55,15 @@ namespace Code.Gameplay.Weapons
|
||||
{
|
||||
if (!_firePoint)
|
||||
_firePoint = FindFirstObjectByType<CameraController>().transform;
|
||||
|
||||
if (muzzleFlash != null)
|
||||
muzzleFlash.Stop();
|
||||
}
|
||||
|
||||
public void OnEnable()
|
||||
{
|
||||
if (muzzleFlash != null)
|
||||
muzzleFlash.Stop();
|
||||
}
|
||||
|
||||
public virtual void Shoot()
|
||||
@@ -134,6 +143,7 @@ namespace Code.Gameplay.Weapons
|
||||
public virtual void StopShooting()
|
||||
{
|
||||
isShooting = false;
|
||||
muzzleFlash.Stop();
|
||||
}
|
||||
|
||||
public virtual void Reload()
|
||||
|
||||
Reference in new issue
Block a user