예제 #1
0
 // Use this for initialization
 void Start()
 {
     sound = GetComponent <Sounds> ();
     sound.PlayBossTheme();
     initiateDialog = GetComponent <InitiateDialog>();
     initiateDialog.StartDialog();
     //sound.PlayBossDialog();
     StartCoroutine(BossDialogDelay(sound));
     bossAI         = FindObjectOfType <BossAI>();
     bossAI.enabled = false;
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     Time.timeScale = 1f;
     preventRepeat  = false;
     waveSpawner    = GetComponent <WaveSpawner>();
     initiateDialog = GetComponent <InitiateDialog>();
     initiateDialog.StartDialog();
     sounds = GetComponent <Sounds>();
     sounds.PlaySound2();
     StartCoroutine(ChukkaDelay(sounds));
     timer.gameObject.SetActive(false);
     chuka.GetComponent <EnemyAI>().enabled = false;
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     Time.timeScale = 1f;
     TempuraIsAlive = true;
     MakiIsAlive    = true;
     isDone         = false;
     preventRepeat  = false;
     makiRoll.SetActive(false);
     enemyAI         = FindObjectOfType <EnemyAI>();
     enemyAI.enabled = false;
     initiateDialog  = GetComponent <InitiateDialog>();
     waveSpawner     = GetComponent <WaveSpawner>();
     initiateDialog.StartDialog();
     tempuraTutorial.gameObject.SetActive(true);
     bgmManager.PlayDialog();
     bgmManager.PlayTempuraKora();
     timer.gameObject.SetActive(false);
 }
예제 #4
0
 // Update is called once per frame
 void Update()
 {
     if (isDone == false)
     {
         if (TempuraIsAlive == false)
         {
             if (preventRepeat == false)
             {
                 tempuraTutorial.gameObject.SetActive(false);
                 makiTutorial.gameObject.SetActive(true);
                 makiRoll.SetActive(true);
                 initiateDialog.StartDialog();
                 initiateDialog.SwitchSprites();
                 bgmManager.PlayMakiAniki();
                 preventRepeat = true;
                 return;
             }
         }
         if (MakiIsAlive == false)
         {
             if (waveUI != null)
             {
                 waveUI.SetActive(true);
             }
             bgmManager.PlayWave();
             bgmManager.fading1 = true;
             StartCoroutine(AfterFade(bgmManager));
             waveSpawner.enabled = true;
             makiTutorial.gameObject.SetActive(false);
             rollTutorial.gameObject.SetActive(true);
             StartCoroutine(TimerSpawn(Timer));
             isDone = true;
             return;
         }
     }
     else
     {
         return;
     }
 }
예제 #5
0
    private void Update()
    {
        if (tutorialSkip.skip == false)
        {
            if (preventRepeat == false)
            {
                initiateDialog.StartDialog();
                preventRepeat = true;
            }
        }

        if (initiateDialog.firstDone == true && initiateDialog.done == true)
        {
            if (preventRepeatSounds == false)
            {
                sounds.PlaySamurai();
                sounds.fading2 = true;
                StartCoroutine(AfterFade(sounds));
                preventRepeatSounds = true;
            }
        }
    }