Buzz-in flashing now resets properly when the flashing is finished.
This commit is contained in:
@@ -261,10 +261,7 @@ public class PlayerPodium : UdonSharpBehaviour
|
||||
public void StartBuzzedInEffect()
|
||||
{
|
||||
FlashScoreboard = true;
|
||||
}
|
||||
private void BeginBuzzedInEffect()
|
||||
{
|
||||
TickFlashingScoreboard();
|
||||
RequestSerialization();
|
||||
}
|
||||
public void TickFlashingScoreboard()
|
||||
{
|
||||
@@ -287,6 +284,7 @@ public class PlayerPodium : UdonSharpBehaviour
|
||||
else {
|
||||
ResetScoreboardColours();
|
||||
_FlashingScoreboardCounter = 0;
|
||||
FlashScoreboard = false;
|
||||
}
|
||||
}
|
||||
private void InvertScoreboardColours()
|
||||
@@ -365,13 +363,12 @@ public class PlayerPodium : UdonSharpBehaviour
|
||||
_FlashScoreboard = value;
|
||||
if (_FlashScoreboard)
|
||||
{
|
||||
BeginBuzzedInEffect();
|
||||
TickFlashingScoreboard();
|
||||
}
|
||||
else
|
||||
{
|
||||
_FlashingScoreboardCounter = 0;
|
||||
}
|
||||
RequestSerialization();
|
||||
}
|
||||
get => _FlashScoreboard;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user