Added a music fadeout.
This commit is contained in:
@@ -74,11 +74,7 @@ public class GameManagerBase : UdonSharpBehaviour
|
||||
}
|
||||
|
||||
|
||||
public virtual void InitialiseGameMode()
|
||||
{
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "StopMusic");
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "StopSFX");
|
||||
}
|
||||
public virtual void InitialiseGameMode() { }
|
||||
|
||||
public virtual void LoadQuestionData(DataToken Data) { }
|
||||
|
||||
|
||||
@@ -970,6 +970,9 @@ public class GameManagerRound1 : GameManagerBase
|
||||
(HostCardBetweenRoundsInterface)GetHostCardInterface(RoundSegmentType.BetweenSegments);
|
||||
Interface.HeaderUI.text = "Round is over. Move to the loot recovery area.";
|
||||
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All,
|
||||
"PlayMusicLoop", MusicEventType.CapitalLoop);
|
||||
|
||||
_CaseManager.ContinueToRound2();
|
||||
|
||||
EnableInteraction("End Game");
|
||||
|
||||
@@ -112,8 +112,7 @@ public class GameManagerRound2 : GameManagerBase
|
||||
|
||||
RecoverTheLootInterface.HeaderUI.text = RoundSegmentTypeToString(RoundSegmentType.RecoverTheLootExplainer);
|
||||
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All,
|
||||
"PlayMusicLoop", MusicEventType.CapitalLoop);
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "FadeOutMusic");
|
||||
|
||||
EnableInteraction("Begin Round");
|
||||
}
|
||||
@@ -236,6 +235,9 @@ public class GameManagerRound2 : GameManagerBase
|
||||
Interface.HeaderUI.text = "Round is over. Let's go to the map!";
|
||||
|
||||
_CaseManager.ContinueToRound3();
|
||||
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All,
|
||||
"PlayMusicLoop", MusicEventType.IFeelGood);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -127,8 +127,7 @@ public class GameManagerRound3 : GameManagerBase
|
||||
|
||||
CaptureCarmenExplainerInterface.HeaderUI.text = RoundSegmentTypeToString(RoundSegmentType.CaptureCarmenExplainer);
|
||||
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All,
|
||||
"PlayMusicLoop", MusicEventType.IFeelGood);
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "FadeOutMusic");
|
||||
|
||||
EnableInteraction("Begin");
|
||||
}
|
||||
@@ -338,7 +337,7 @@ public class GameManagerRound3 : GameManagerBase
|
||||
(HostCardBetweenRoundsInterface)GetHostCardInterface(RoundSegmentType.BetweenSegments);
|
||||
Interface.HeaderUI.text = "Game is over. Load a new case file to start again.";
|
||||
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "StopMusic");
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "FadeOutMusic");
|
||||
|
||||
EnableInteraction("Game is over. Load a new case file to start again.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user