- Adjusted timing of confetti cannons and music end during round 2.
- Location Board now properly initialises, including randomised colours. - Location Board no longer relies on any NetworkCallable functions. - Redrew Patty Larceny and Eartha Brute portraits. - Changed all audio files to not preload. - Updated occlusion culling data.
This commit is contained in:
@@ -91,7 +91,6 @@ public class GameManagerRound2 : GameManagerBase
|
||||
private void InitialiseLocationBoard()
|
||||
{
|
||||
_LocationBoard.RandomiseLocations();
|
||||
_LocationBoard.RandomiseMaterials();
|
||||
LocationBoardReset();
|
||||
}
|
||||
|
||||
@@ -144,7 +143,8 @@ public class GameManagerRound2 : GameManagerBase
|
||||
Location = LandmarkDictionary["Location"].String;
|
||||
|
||||
_Landmarks = NewLandmarks;
|
||||
_LocationBoard.SendCustomNetworkEvent(NetworkEventTarget.All, "PopulateLandmarks", NewLandmarks);
|
||||
_LocationBoard.PopulateLandmarks(NewLandmarks);
|
||||
_LocationBoard.RandomiseMaterials();
|
||||
LocationBoardReset();
|
||||
|
||||
RequestSerialization();
|
||||
@@ -302,16 +302,18 @@ public class GameManagerRound2 : GameManagerBase
|
||||
(HostCardRecoverTheLootInterface)GetHostCardInterface(RoundSegmentType.RecoverTheLoot);
|
||||
Interface.SetComment("Winner! Congratulations, " + Winner[0], COLOR_RED);
|
||||
|
||||
_PlayerConfettiCannons[WinningPlayerNumber].Play();
|
||||
|
||||
Interface.EnableAllPanelButtons(false);
|
||||
|
||||
NetworkCalling.SendCustomNetworkEvent((IUdonEventReceiver)_AudioManager, NetworkEventTarget.All,
|
||||
"StopMusic");
|
||||
|
||||
_CameraControllerRound2.ActivateLocationBoardAndWinningPlayerCameraSwitcher();
|
||||
_CameraControllerRound2.ActivateHostWinnerCameraTrigger();
|
||||
|
||||
SendCustomEventDelayedSeconds(nameof(YoureWinnerDelayedFunctions), 1.0f);
|
||||
}
|
||||
public void YoureWinnerDelayedFunctions()
|
||||
{
|
||||
_PlayerConfettiCannons[_CurrentPlayerCounter % _Players.Length].Play();
|
||||
_AudioManager.SendCustomNetworkEvent(NetworkEventTarget.All, "StopMusic");
|
||||
|
||||
AdvanceRound();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user