Exemple #1
0
    public IEnumerator launchBossSequence()
    {
        this.GetComponent <CameraEffectDezoom> ().isLaunch = true;
        spawners.pauseSpawn = true;
        uiManager.launchBossPanel();
        GameObject.Find("MainCamera").GetComponent <CameraManager> ().shakeAmount = 0.1f;
        GameObject.Find("MainCamera").GetComponent <CameraManager> ().setShake(3.5f);
        yield return(new WaitForSeconds(1f));

        this.GetComponent <AudioSource> ().Stop();
        var puTransform = Instantiate(baleine) as Transform;

        yield return(new WaitForSeconds(2f));

        this.GetComponent <AudioSource> ().clip = bossBaleineMusic;
        this.GetComponent <AudioSource> ().Play();
        this.GetComponent <AudioSource> ().loop = true;
    }