Exemplo n.º 1
0
 void CmdSetMyParameters(string nik, Cmn.EPlayerColor color)
 {
     // they will be synced
     Nik               = nik;
     Color             = color;
     ReadyToRegistrate = true;
 }
Exemplo n.º 2
0
    public void OnSliderColorChanged()
    {
        Cmn.EPlayerColor playerColor = (Cmn.EPlayerColor)Convert.ToInt32(ui.sl_PlayerColor.value);

        Cmn.PlayerColor = playerColor;

        // each time it's painful that unity is not supports c#6.0> features :(
        ui.tx_PlayerColor.text = "Color: <b><Color="
                                 + playerColor.ToHex() + ">"
                                 + playerColor.ToString()
                                 + "</Color></b>";
    }