Explainer for Round 2 now properly shows the loot and crook in the text.

This commit is contained in:
Jamie Greunbaum 2025-08-13 18:08:37 -04:00
parent ccd73c5895
commit 316773c789
5 changed files with 20 additions and 17 deletions

View File

@ -18528,8 +18528,8 @@ Light:
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 3.5
m_Range: 14
m_SpotAngle: 85
m_InnerSpotAngle: 5
m_SpotAngle: 90
m_InnerSpotAngle: 1
m_CookieSize: 10
m_Shadows:
m_Type: 0
@ -29754,8 +29754,8 @@ Light:
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: 3.5
m_Range: 14
m_SpotAngle: 85
m_InnerSpotAngle: 5
m_SpotAngle: 90
m_InnerSpotAngle: 1
m_CookieSize: 10
m_Shadows:
m_Type: 0
@ -39755,7 +39755,7 @@ MonoBehaviour:
ChoiceUI: []
ChoiceButtonImages: []
ChoiceButtons: []
_ExplainerUI: {fileID: 1380484468}
ExplainerUI: {fileID: 1380484468}
--- !u!114 &1331620966
MonoBehaviour:
m_ObjectHideFlags: 0
@ -41260,8 +41260,9 @@ MonoBehaviour:
you need to obtain a warrant.\n\u2022 Once you have the warrant, then you can
arrest the crook.\n\u2022 Finding either the loot, the warrant, or the crook,
gets you a free turn.\n\u2022 Connect loot -> warrant -> crook in a single turn,
and in that order, and you will have a chance to catch Carmen Sandiego.\n\u2022
Catch Carmen Sandiego to win the promotion from Gumshoe to Sleuth."
and in that order, and you will put [[CROOK]] in jail and have a chance to catch
Carmen Sandiego.\n\u2022 Catch Carmen Sandiego to win the promotion from Gumshoe
to Sleuth."
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 9672859a94551274b9079efbf9adc4a9, type: 2}
m_sharedMaterial: {fileID: -1369706839575089024, guid: 9672859a94551274b9079efbf9adc4a9,

View File

@ -182,6 +182,10 @@ public class CaseManager : UdonSharpBehaviour
{
return _AccusedCrook;
}
public string GetCrookName()
{
return CrookToString(_AccusedCrook);
}
public VRCUrl GetMap(int MapIndex)
{

View File

@ -112,6 +112,10 @@ public class GameManagerRound2 : GameManagerBase
RecoverTheLootInterface.HeaderUI.text = RoundSegmentTypeToString(RoundSegmentType.RecoverTheLootExplainer);
RecoverTheLootInterface.ExplainerUI.text = RecoverTheLootInterface.ExplainerUI.text
.Replace("[[LOOT]]", _CaseManager.GetLoot())
.Replace("[[CROOK]]", _CaseManager.GetCrookName());
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "FadeOutMusic");
EnableInteraction("Begin Round");

View File

@ -266,13 +266,13 @@ MonoBehaviour:
Data:
- Name: $k
Entry: 1
Data: _ExplainerUI
Data: ExplainerUI
- Name: $v
Entry: 7
Data: 14|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: _ExplainerUI
Data: ExplainerUI
- Name: <UserType>k__BackingField
Entry: 9
Data: 3
@ -296,13 +296,7 @@ MonoBehaviour:
Data: 15|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 1
- Name:
Entry: 7
Data: 16|UnityEngine.SerializeField, UnityEngine.CoreModule
- Name:
Entry: 8
Data:
Data: 0
- Name:
Entry: 13
Data:

View File

@ -7,5 +7,5 @@ using UnityEngine;
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
public class HostCardRecoverTheLootExplainerInterface : HostCardInterfaceBase
{
[SerializeField] private TextMeshProUGUI _ExplainerUI;
public TextMeshProUGUI ExplainerUI;
}