System.Collections.Generic.Dictionary.Remove(VRCPlayerApi)

Here are the examples of the csharp api System.Collections.Generic.Dictionary.Remove(VRCPlayerApi) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : CyanEmuPlayerManager.cs
with MIT License
from CyanLaser

public static void RemovePlayer(VRCPlayerApi player)
        {
            if (masterID == player.playerId)
            {
                masterID = -1;
                if (VRCPlayerApi.AllPlayers.Count != 0)
                {
                    masterID = VRCPlayerApi.AllPlayers[0].playerId;
                }
            }

            CyanEmuMain.PlayerLeft(player);
            
            playerIDs.Remove(player);
            players.Remove(player.playerId);
            player.RemoveFromList();
        }