Exemplo n.º 1
0
    private void Update()
    {
        if (!(shmupMaster.startingSTG || shmupMaster.endSTG))
        {
            if (patternInitialCountdown < 0)
            {
                if (!spellcard)
                {
                    shmupMaster.spellCap = false;
                }

                if (waitTimeRemaining > 0)
                {
                    waitTimeRemaining -= gameMaster.timeScale;
                }

                Patterns();

                BulletCollisions(!(spellcard ? spellData[patternIndex].survivalSpell : nonData[patternIndex].survivalSpell));

                UpdateHealthbar();

                UpdateAnimator();

                shmupMaster.patternTimeLeft = spellcardTimeRemaining;

                if (!(spellcard ? spellData[patternIndex].killOnlySpell : nonData[patternIndex].killOnlySpell))
                {
                    spellcardTimeRemaining -= gameMaster.timeScale;
                }
            }
            else
            {
                if (spellcard && !shmupMaster.spellcardDisplayed)
                {
                    shmupMaster.DeclareSpellcard(spellData[patternIndex].nameBoxLength[(int)gameMaster.languageSetting],
                                                 spellData[patternIndex].spellName[(int)gameMaster.languageSetting], spellData[patternIndex].characterPortrait);
                }
                patternInitialCountdown -= gameMaster.timeScale;
            }
        }
    }