public void EnemyDeath(int value) { SoundManager.Instance.EnemyImpact(); if (!blood.isPlaying) { blood.Play(); } spawn.UpdateStage(); killingSpree(); int AddedScore = (int)(value * multiplicador); points += AddedScore; MenuManager.Instance.UpdatePoints(points, AddedScore, multiplicador); }
private void StageChange() { if (stage < TutorialStage.TotalStages - 1) { stage++; if (spawner) { spawner.UpdateStage(); } else { spawner = FindObjectOfType <PatternSpawner>(); spawner.UpdateStage(); } } }