void IncreaseProgress() { if (isActive && hasVirus == false) { progress++; } if (progress > 5 && hasVirus == false) { hasVirus = true; virusParticle = Instantiate(virusParticlePrefab); gameplayController.AddScore(); } }
protected virtual void Die() { audioController.EnemyDestroyedSound(); gameController.AddScore(score); Destroy(this.gameObject); }