setting up enemy consumption and increasing score - maybe change?

This commit is contained in:
Amaan Shawkath
2022-04-19 21:43:27 +01:00
parent 209470d610
commit e2511e2d53
7 changed files with 6779 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ public class Pattern : MonoBehaviour
{
OnPatternUpdate();
duration -= Time.deltaTime;
if (duration <= 0)
if (duration <= 0 || enemy.IsDead)
{
//find all particle systems in children and stop them
foreach (ParticleSystem ps in GetComponentsInChildren<ParticleSystem>())