public void PlayVideo() { Player.Stop(); if (IsVideoPlayable()) { if (!Player.isPrepared) { PrepareVideo(currentVideo); } if (currentVideo.Offset < 0) { StopAllCoroutines(); Player.time = 0; StartCoroutine(PlayDelayedVideo()); } else { Player.time = currentVideo.Offset; Player.Play(); } Logger.Instance.Log($"Playing: \n{currentVideo.ToString()}!", Logger.LogSeverity.DEBUG); } else { Logger.Instance.Log("Failed to play video because there is no video set!", Logger.LogSeverity.ERROR); } }