How to remove a player though code

I know that I can join a new player with PlayerInputManager.JoinPlayer().
But what if I want to remove it so there is only one? I tried destroying the PlayerInput gameobjects, but the playerCount will still be the same ammount.

Sorry, I was wrong. Deleting it will reduce the count. My problem was not having the right notification behaviour

1 Like