Player podium now resets ownership when the owner leaves the game.

This commit is contained in:
Jamie Greunbaum 2025-08-19 03:31:04 -04:00
parent 5f9b1bad15
commit b4ee6cfc30

View File

@ -51,6 +51,16 @@ public class PlayerPodium : UdonSharpBehaviour
_Buzzer.SetGameManager(_GameManager);
}
public override void OnPlayerLeft(VRCPlayerApi Player)
{
if (Player.displayName == PlayerName)
{
ResetOwner();
}
base.OnPlayerLeft(Player);
}
public void SetPlayerName()
{