Fixed issues that caused maps to load and display in between rounds.

This commit is contained in:
Jamie Greunbaum 2025-12-09 00:54:13 -05:00
parent e96941060f
commit 0b3fc5c08b

View File

@ -208,7 +208,7 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
int MapPage = SubMapIndex / IMAGES_PER_MAP_ATLAS;
if (MapPage == _MapDownloadIndex)
{
UpdateMap(false);
_MapScreenMaterial.SetTexture("_EmissionMap", _MapImages[MapPage]);
}
_MapDownloadIndex++;
@ -266,10 +266,10 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
}
_MapScreenMaterial.SetTexture("_EmissionMap", _MapImages[MapPage]);
ShowScreen = ClueScreenType.Map;
if (SyncResult)
{
ShowScreen = ClueScreenType.Map;
RequestSerialization();
}
}
@ -549,7 +549,7 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
set
{
_FlashCorrectAnswer = value;
if (_FlashCorrectAnswer) NextCorrectAnswerFrame();
NextCorrectAnswerFrame();
RequestSerialization();
}
get => _FlashCorrectAnswer;