- Added a title animation for The Chase.
- Lightning Round SFX no longer play in nested NetworkEventTarget.All function.
This commit is contained in:
@@ -44,7 +44,7 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 32
|
||||
Data: 33
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
@@ -1925,16 +1925,71 @@ MonoBehaviour:
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: _CameraControllerRound1
|
||||
Data: _TheChaseAnimator
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 124|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _TheChaseAnimator
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 119
|
||||
- Name: <SystemType>k__BackingField
|
||||
Entry: 9
|
||||
Data: 119
|
||||
- Name: <SyncMode>k__BackingField
|
||||
Entry: 7
|
||||
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
|
||||
- Name:
|
||||
Entry: 6
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name: <IsSerialized>k__BackingField
|
||||
Entry: 5
|
||||
Data: true
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 125|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
|
||||
mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
Data: 1
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data: 126|UnityEngine.SerializeField, UnityEngine.CoreModule
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 13
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 8
|
||||
Data:
|
||||
- Name:
|
||||
Entry: 7
|
||||
Data:
|
||||
- Name: $k
|
||||
Entry: 1
|
||||
Data: _CameraControllerRound1
|
||||
- Name: $v
|
||||
Entry: 7
|
||||
Data: 127|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
|
||||
- Name: <Name>k__BackingField
|
||||
Entry: 1
|
||||
Data: _CameraControllerRound1
|
||||
- Name: <UserType>k__BackingField
|
||||
Entry: 7
|
||||
Data: 125|System.RuntimeType, mscorlib
|
||||
Data: 128|System.RuntimeType, mscorlib
|
||||
- Name:
|
||||
Entry: 1
|
||||
Data: CameraControllerRound1, Assembly-CSharp
|
||||
@@ -1958,7 +2013,7 @@ MonoBehaviour:
|
||||
Data: false
|
||||
- Name: _fieldAttributes
|
||||
Entry: 7
|
||||
Data: 126|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
|
||||
Data: 129|System.Collections.Generic.List`1[[System.Attribute, mscorlib]],
|
||||
mscorlib
|
||||
- Name:
|
||||
Entry: 12
|
||||
|
||||
@@ -57,6 +57,7 @@ public class GameManagerRound1 : GameManagerBase
|
||||
|
||||
[Space, Header("Effects")]
|
||||
[SerializeField] private Animator _LightningRoundAnimator;
|
||||
[SerializeField] private Animator _TheChaseAnimator;
|
||||
|
||||
private CameraControllerRound1 _CameraControllerRound1 = null;
|
||||
|
||||
@@ -768,7 +769,7 @@ public class GameManagerRound1 : GameManagerBase
|
||||
public void PlayLightningRoundAnimation()
|
||||
{
|
||||
_LightningRoundAnimator.SetBool("Lightning", true);
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "PlaySFX", SFXEventType.Thunder);
|
||||
_AudioManager.PlaySFX(SFXEventType.Thunder);
|
||||
SendCustomEventDelayedSeconds(nameof(ResetLightningRoundAnimation), 5.0f);
|
||||
}
|
||||
public void ResetLightningRoundAnimation()
|
||||
@@ -893,21 +894,27 @@ public class GameManagerRound1 : GameManagerBase
|
||||
{
|
||||
_CameraControllerRound1.DisableAllSwitchers();
|
||||
_CameraControllerRound1.SwitchToWideShotCamera();
|
||||
|
||||
SendCustomNetworkEvent(NetworkEventTarget.All, nameof(PlayTheChaseAnimation_Private));
|
||||
}
|
||||
[NetworkCallable]
|
||||
public void PlayTheChaseAnimation_Private()
|
||||
{
|
||||
_AudioManager.PlayMusic(MusicEventType.TheChase);
|
||||
SendCustomEventDelayedSeconds(nameof(_PlayTheChaseMusic_EnableInteraction_Private), 5.0f);
|
||||
|
||||
HostCardBetweenRoundsInterface Interface =
|
||||
(HostCardBetweenRoundsInterface)GetHostCardInterface(RoundSegmentType.BetweenSegments);
|
||||
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All,
|
||||
"PlayMusic", MusicEventType.TheChase);
|
||||
|
||||
Interface.HeaderUI.text = RoundSegmentTypeToString(RoundSegmentType.TheChase);
|
||||
Interface.CommentUI.text = "All of these questions are worth 5 Acme Crimebucks. Hands on your buzzers, watch the monitor, listen carefully. Here we go.";
|
||||
_TheChaseAnimator.SetBool("Play The Chase", true);
|
||||
}
|
||||
public void _PlayTheChaseMusic_EnableInteraction_Private()
|
||||
{
|
||||
_TheChaseAnimator.SetBool("Play The Chase", false);
|
||||
|
||||
_CameraControllerRound1.ActivateHostAllPlayersCameraSwitcher();
|
||||
|
||||
HostCardBetweenRoundsInterface Interface =
|
||||
(HostCardBetweenRoundsInterface)GetHostCardInterface(RoundSegmentType.BetweenSegments);
|
||||
Interface.HeaderUI.text = RoundSegmentTypeToString(RoundSegmentType.TheChase);
|
||||
Interface.CommentUI.text = "All of these questions are worth 5 Acme Crimebucks. Hands on your buzzers, watch the monitor, listen carefully. Here we go.";
|
||||
|
||||
EnableBuzzers();
|
||||
|
||||
EnableInteraction("Here We Go");
|
||||
|
||||
Reference in New Issue
Block a user