Esempio n. 1
0
    public void StartGame()
    {
        GameManager.instance.StartGame();

        switch (boss)
        {
        case Boss.PUMPKIN:
            SceneManagement.Pumpkin();
            return;

        case Boss.GHOST:
            SceneManagement.Ghost();
            return;

        case Boss.SKELETON:
            SceneManagement.Skeleton();
            return;

        case Boss.FRANKENSTEIN:
            SceneManagement.Frankenstein();
            return;

        case Boss.CAT:
            SceneManagement.Cat();
            return;

        case Boss.VAMPIRE:
            SceneManagement.Vampire();
            return;

        case Boss.SCIENTIST:
            SceneManagement.Scientist();
            return;

        case Boss.GRUMWALDA:
            SceneManagement.Grumwalda();
            return;

        default:
            Debug.LogError($"Boss not found: {boss}");
            return;
        }
    }