GetPlayer

public VPlayer GetPlayer(int playerId);

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void Update()
    {
        if(Input.GetKeyDown(KeyCode.Space))
        {
            // Display the nickname of the player with id 0
            Debug.Log(GetPlayer(0).Nickname);
        }
    }
}

Gets the player object from a player with a specific identifier.

playerId The player identifier.