How to enable and disable joining with the new input system via script b/c I don’t want players to join mid-game but in the menu, I’ve heard of methods like “public void DisableJoining()” and “public void EnableJoining()” but I have no idea how to use them.
Reference the PlayerInputManager in the script first, for example:
public PlayerInputManager playerManager;
…
if (playerManager.playerCount == 2) {
playerManager.DisableJoining();
}
In this case, if 2 players joined, joining is disabled.