Video player no longer stops for all players when the owner's video ends.
This commit is contained in:
parent
2da0d86688
commit
21998dffcb
@ -417,8 +417,7 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
|
||||
|
||||
public override void OnVideoEnd()
|
||||
{
|
||||
PlayVideo = false;
|
||||
ShowScreen = ClueScreenType.Blank;
|
||||
_SwapToScreen(ClueScreenType.Blank, false);
|
||||
|
||||
base.OnVideoEnd();
|
||||
}
|
||||
@ -443,7 +442,7 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
|
||||
}
|
||||
|
||||
|
||||
private void _SwapToScreen(ClueScreenType Screen)
|
||||
private void _SwapToScreen(ClueScreenType Screen, bool StopAllVideos = true)
|
||||
{
|
||||
if (ShowScreen == Screen) return;
|
||||
|
||||
@ -455,7 +454,7 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
|
||||
_VideoScreenMesh.transform.localPosition = new Vector3(0.0f, -1000.0f, 0.0f);
|
||||
_MapScreenMesh.transform.localPosition = new Vector3(0.0f, -1000.0f, 0.0f);
|
||||
|
||||
PlayVideo = false;
|
||||
if (StopAllVideos) PlayVideo = false;
|
||||
break;
|
||||
}
|
||||
case ClueScreenType.Video:
|
||||
@ -471,7 +470,7 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
|
||||
_VideoScreenMesh.transform.localPosition = new Vector3(0.0f, -1000.0f, 0.0f);
|
||||
_MapScreenMesh.transform.localPosition = new Vector3(0.0f, 0.0f, 0.0f);
|
||||
|
||||
PlayVideo = false;
|
||||
if (StopAllVideos) PlayVideo = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user