sea-battle-vr/Assets/Scripts/Menu/MenuVideoManager.cs

18 lines
463 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using UnityEngine;
using UnityEngine.Video;
public class MenuVideoManager : MonoBehaviour
{
[SerializeField] private VideoClip clip;
[SerializeField] private VideoPlayer videoPlayer;
public void Initialize()
{
videoPlayer.clip = clip;
videoPlayer.Play();
//Тут нужно будет поработать с выводом звука в нужный источник для настраиваемости.
}
}