private void Awake() { Textures = new Texture[VideoUrls.Length].ToList(); _player.Setup(GetComponent <VideoPlayer>()); _player.errorReceived += OnError; _infoText = FindObjectOfType <VideoLoadingText>(); isPT = PlayerPrefs.GetString("language", "PT") == "PT"; }
private void Awake() { _infoText = FindObjectOfType <VideoLoadingText>(); _player.loopPointReached += LoopPointReached; _player.prepareCompleted += PrepareCompleted; _player.errorReceived += OnError; _player.Setup(GetComponent <VideoPlayer>()); fromURL = useURL; Debug.Log("Getting videos from URL: " + fromURL); SendMessage("Setup", SendMessageOptions.DontRequireReceiver); isPT = PlayerPrefs.GetString("language", "PT") == "PT"; }