예제 #1
0
    private void NextWave()
    {
        this.scriptDestroyAll.DestroyAllGroup(ConstantManager.PointRatioType.WaveFinish);

        currentWave++;

        switch (currentWave)
        {
        case 1:
            timerInGame = ConstantManager.GameTimeWave1;
            this.scriptBGMPlayer.PlayBGMWave1();

            this.scriptEnemyManager.CoolTimeSpan = ConstantManager.TargetGeneratorCoolTimeWave1;
            break;

        case 2:
            timerInGame = ConstantManager.GameTimeWave2;
            this.scriptBGMPlayer.PlayBGMWave2();

            this.scriptEnemyManager.CoolTimeSpan = ConstantManager.TargetGeneratorCoolTimeWave2;
            break;

        case 3:
            timerInGame = ConstantManager.GameTimeWave3;
            this.scriptBGMPlayer.PlayBGMWave3();

            this.scriptEnemyManager.CoolTimeSpan = ConstantManager.TargetGeneratorCoolTimeWave3;
            break;
        }

        if (isAlreadyBeginCount)
        {
            this.scriptEnemyManager.CoolTime = 0;

            TipsBoolManager.SetIsAlreadyTipsFalse();
            this.scriptOutputTips.SetNextTips(TipsTextManager.Tips3Wave);
            this.scriptOutputTips.UpdateOutputTipsInGame();

            counterAlermSE = ConstantManager.StandardOfTimerEmphasis;

            this.scriptOutputTime.OutputCurrentWave();

            this.scriptSEManager.PlaySEStartWave();
            ScoreManager.DebugScore();
        }
    }
예제 #2
0
    private void OutputTipsInGame(string newTextTips)
    {
        if (ConstantManager.IsDebugMode)
        {
            Debug.Log("OutputTips OutputTipsInGame / Timer:" + GameDirector.TimerInGame + "TipsNum:" + this.currentTipsNumber);
        }

        this.textTipsInGame.text = newTextTips;
        this.arrayTextTips[this.currentTipsNumber] = newTextTips;

        if (this.currentTipsNumber == ConstantManager.OrderOfTipsShootClick)
        {
            TipsBoolManager.SetIsAlreadyTipsFalse();
        }

        this.currentTipsNumber++;
        this.standardOfNextTimer = GameDirector.TimerInGame - ConstantManager.TipsSpan;

        Invoke("HideTips", ConstantManager.HideTipsSpan);
    }