public void VideoOver(UnityEngine.Video.VideoPlayer vp)
 {
     vp.Stop();
     VideoWindow.SetActive(false);
     GameManager.GetInstance().hp.GetComponent <Slider>().value -= 10f;
     dialog.text = "화재시 엘리베이터를 사용하면 위험합니다!";
     dialogPanel.SetActive(true);
 }
 //엘리베이터 사용. 엘리베이터선택패널의 예 버튼에 연결
 public void UseElevator()
 {
     SoundManger.instance.musicSource.volume = .1f;
     UnityEngine.Video.VideoPlayer videoPlayer; videoPlayer = GameObject.Find(items["elevator"].name).GetComponent <UnityEngine.Video.VideoPlayer>();
     videoPlayer.Play();
     VideoWindow.SetActive(true);
     videoPlayer.loopPointReached += VideoOver;
 }