Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (!SharedInfo.InitialScenePlayed)
     {
         _playerController.PausePlayer();
         if (Input.GetKeyDown(KeyCode.Y))
         {
             _promptText.SetActive(false);
             _videoManager.PlayVideo(() => {
                 _fadeOut.SetActive(true);
                 _playerController.ResumePlayer();
                 _itemsController.ActivateTorch();
                 SharedInfo.InitialScenePlayed = true;
             });
         }
     }
 }