Exemplo n.º 1
0
    void Start()
    {
        animator                     = GetComponent <Animator>();
        mainCamera                   = Camera.main;
        cameraScript                 = mainCamera.GetComponent <MoveCameraNextRoom>();
        cameraScript.freeCam         = true;
        cameraScript.trackPlayer     = true;
        Camera.main.orthographicSize = 20;

        FindObjectOfType <AudioManager>().PlaySound("First Boss Background Music");

        Sound s = Array.Find(FindObjectOfType <AudioManager>().sounds, sound => sound.name == "Dungeon Ambiance");

        s.source.mute = true;

        StartCoroutine(bossWakeUpSequence());
    }
Exemplo n.º 2
0
 private void Start()
 {
     cameraScript = GetComponent <MoveCameraNextRoom>();
 }