Player podium now resets ownership when the owner leaves the game.
This commit is contained in:
parent
5f9b1bad15
commit
b4ee6cfc30
@ -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()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user