added muzzle flash on gun
This commit is contained in:
@@ -39,6 +39,8 @@ namespace Darkmatter.Presentation
|
||||
public float fireRate = 0.1f;
|
||||
float nextFiretime=0;
|
||||
|
||||
public ParticleSystem particle;
|
||||
|
||||
|
||||
[Inject] private IInputReader inputReader;
|
||||
[Inject] private PlayerConfigSO playerConfig;
|
||||
@@ -74,6 +76,7 @@ namespace Darkmatter.Presentation
|
||||
{
|
||||
nextFiretime = Time.time + fireRate;
|
||||
gun.Init(muzzlePos.position, aim.position);
|
||||
particle.Play();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user