ExamplePlayerScript.OnStartLocalPlayer C# (CSharp) Метод

OnStartLocalPlayer() публичный Метод

public OnStartLocalPlayer ( ) : void
Результат void
    public override void OnStartLocalPlayer()
    {
        base.OnStartLocalPlayer();

        // Send custom player info
        // This is an example of sending additional information to the server that might be needed in the lobby (eg. colour, player image, personal settings, etc.)

        myColour = UnityEngine.Random.ColorHSV(0,1,1,1,1,1);
        CmdSetCustomPlayerInfo(myColour);
    }