OnHero

Description

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void OnHero(int playerId)
    {
        Debug.LogFormat("Player {0:D} is now a hero!", playerId);
    }
}

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

using UnityEngine;
using Volplane;

public class Demo : VolplaneBehaviour
{
    void OnHero(VPlayer player)
    {
        Debug.LogFormat("{0:G} is now a hero!", player.Nickname);
    }
}

Is called when a player becomes AirConsole Hero.

playerId The player identifier.
player The player object.