Beispiel #1
0
    void Start()
    {
        maze = GameObject.FindWithTag("Main").GetComponent <MazeGenerator>();

        boss = GameObject.FindWithTag("Boss").GetComponent <Boss>();

        loadingWithAnimation = Camera.main.GetComponent <LoadingWithAnimation>();

        nextAdditionEventScore            = additionEventFrame;
        nextQTEWrongMentalityUpgradeScore = QTEWrongMentalityUpgradeFrame;
        nextQTELengthUpgradeScore         = QTELengthUpgradeFrame;
        nextQTETimeLimitUpgradeScore      = QTETimeLimitUpgradeFrame;

        score = -eps;
    }
Beispiel #2
0
    void Start()
    {
        GameState.state = GameState.MENU_VIEWING;
        index           = 0;

        almostFinished = false;

        soundEffectManager = GetComponent <SoundEffectManager>();
        soundEffectManager.adjustSound();

        loadingWithAnimation = GameObject.FindWithTag("Main").GetComponent <LoadingWithAnimation>();

        switch (GameMode.mode)
        {
        case GameMode.ESCAPING:
            tutorialPictures = escapingTutorialPictures;
            break;

        case GameMode.INFINITE:
            tutorialPictures = infiniteTutorialPictures;
            break;
        }
    }