Example #1
0
    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);
    }
Example #2
0
    private void StageChange()
    {
        if (stage < TutorialStage.TotalStages - 1)
        {
            stage++;

            if (spawner)
            {
                spawner.UpdateStage();
            }
            else
            {
                spawner = FindObjectOfType <PatternSpawner>();
                spawner.UpdateStage();
            }
        }
    }