diff --git a/Assets/Scripts/PlayerScript.cs b/Assets/Scripts/PlayerScript.cs index 554b29a..58ae73f 100644 --- a/Assets/Scripts/PlayerScript.cs +++ b/Assets/Scripts/PlayerScript.cs @@ -120,6 +120,15 @@ public void HandleCharacterControllerUpdate() void HandleConfigInitialization() { + // TODO: Colocar na classe + var videoPlayer = Camera.main.gameObject.GetComponent(); + + videoPlayer.Prepare(); + videoPlayer.prepareCompleted += (source) => + { + videoPlayer.Play(); + }; + GameManagerScript.instance.DisableMenu(); if (!LocalPrefs.GetGamepadEnabled()) diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 7f0f47a..15039bc 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -138,7 +138,7 @@ PlayerSettings: Others: 1 bundleVersion: 0.1 preloadedAssets: - - {fileID: 0} + - {fileID: 32900000, guid: 1e1f7c5ecdf0b224bac09727d97cd45a, type: 3} metroInputSource: 0 wsaTransparentSwapchain: 0 m_HolographicPauseOnTrackingLoss: 1