SetPlayersActive

public void SetPlayersActive(int count);

Description


using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void OnConnect(int playerId)
    {
        // Start game with 4 players or more.
        if(PlayerCount >= 4)
        {
            // Set four players active, the rest inactive
            SetPlayersActive(4);

            // Do something to start the game...
        }
    }
}

This method will set a specified number of connected players active and the others inactive. It will pick the earliest connected players first.

count The number of players which should be set active.