Fixed issues that caused maps to load and display in between rounds.
This commit is contained in:
parent
e96941060f
commit
0b3fc5c08b
@ -208,7 +208,7 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
|
|||||||
int MapPage = SubMapIndex / IMAGES_PER_MAP_ATLAS;
|
int MapPage = SubMapIndex / IMAGES_PER_MAP_ATLAS;
|
||||||
if (MapPage == _MapDownloadIndex)
|
if (MapPage == _MapDownloadIndex)
|
||||||
{
|
{
|
||||||
UpdateMap(false);
|
_MapScreenMaterial.SetTexture("_EmissionMap", _MapImages[MapPage]);
|
||||||
}
|
}
|
||||||
|
|
||||||
_MapDownloadIndex++;
|
_MapDownloadIndex++;
|
||||||
@ -266,10 +266,10 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
_MapScreenMaterial.SetTexture("_EmissionMap", _MapImages[MapPage]);
|
_MapScreenMaterial.SetTexture("_EmissionMap", _MapImages[MapPage]);
|
||||||
|
ShowScreen = ClueScreenType.Map;
|
||||||
|
|
||||||
if (SyncResult)
|
if (SyncResult)
|
||||||
{
|
{
|
||||||
ShowScreen = ClueScreenType.Map;
|
|
||||||
RequestSerialization();
|
RequestSerialization();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -549,7 +549,7 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
_FlashCorrectAnswer = value;
|
_FlashCorrectAnswer = value;
|
||||||
if (_FlashCorrectAnswer) NextCorrectAnswerFrame();
|
NextCorrectAnswerFrame();
|
||||||
RequestSerialization();
|
RequestSerialization();
|
||||||
}
|
}
|
||||||
get => _FlashCorrectAnswer;
|
get => _FlashCorrectAnswer;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user