OnConnect

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void OnConnect(int playerId)
    {
        ChangeView(playerId, "welcome");
    }
}

You can only use one of those methods inside a VolplaneBehaviour instace.

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void OnConnect(VPlayer player)
    {
        ChangeView(player, "welcome");
    }
}

Is called when a player connects to your game.

playerId The player identifier.
player The player object.