GetPlayerId

public int GetPlayerId(VPlayer player);

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void Update()
    {
        if(Input.GetKeyDown(KeyCode.Space))
        {
            // Display the player id of the game master
            VPlayer player = GetMaster();

            Debug.Log(GetPlayerId(player));
        }
    }
}

Gets the player identifier from a player object.

player A player object.