Skip to content

Commit

Permalink
Ajustes no player de vídeo
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasVinicius314 committed Sep 15, 2022
1 parent 8187ca5 commit 19eb678
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Assets/Scripts/PlayerScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ public void HandleCharacterControllerUpdate()

void HandleConfigInitialization()
{
// TODO: Colocar na classe
var videoPlayer = Camera.main.gameObject.GetComponent<VideoPlayer>();

videoPlayer.Prepare();
videoPlayer.prepareCompleted += (source) =>
{
videoPlayer.Play();
};

GameManagerScript.instance.DisableMenu();

if (!LocalPrefs.GetGamepadEnabled())
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19eb678

Please sign in to comment.