Updating and loading videos on new case loads should now be much more reliable.
This commit is contained in:
@@ -116,6 +116,8 @@ public class CaseManager : UdonSharpBehaviour
|
||||
_CaseFileVideosFallback = CaseFile.FallbackVideoFiles;
|
||||
_CaseFileClueImages = CaseFile.ClueImages;
|
||||
|
||||
_Round1Manager.SetNewVideoPlayerLists(_CaseFileMaps, _CaseFileVideos);
|
||||
|
||||
VRCStringDownloader.LoadUrl(_CaseFileCluesURL, (IUdonEventReceiver)this);
|
||||
}
|
||||
|
||||
|
||||
@@ -139,16 +139,20 @@ public class GameManagerRound1 : GameManagerBase
|
||||
Interface.HeaderUI.text = _CaseManager.GetCaseTitle() + " has been loaded.";
|
||||
Interface.CommentUI.text = _CaseManager.GetCaseDescription();
|
||||
|
||||
TryIntroVideoLoad();
|
||||
|
||||
_GameHasBegun = false;
|
||||
}
|
||||
|
||||
|
||||
public void SetNewVideoPlayerLists(VRCUrl[] Maps, VRCUrl[] Videos)
|
||||
{
|
||||
_VideoPlayer.SetNewLists(Maps, Videos);
|
||||
}
|
||||
public void TryIntroVideoLoad()
|
||||
{
|
||||
int IntroVideoIndex = _CaseManager.GetIntroVideo();
|
||||
if (IntroVideoIndex >= 0)
|
||||
{
|
||||
_VideoPlayer.VideoIndex = IntroVideoIndex;
|
||||
_VideoPlayer.SetVideoIndexLocal(IntroVideoIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user