Пример #1
0
        public void CreateSala()
        {
            Player player = NetworkClient.connection.identity.GetComponent <Player>();

            player.CmdCreateSala(player.playerName);
            gameObject.SetActive(false);
        }
Пример #2
0
        // esto debe ir en ListaSalasController
        public void CreateSala()
        {
            Player player = NetworkClient.connection.identity.GetComponent <Player>();

            //player.listo = toggleListo.isOn;
            player.CmdCreateSala(player.playerName);
            //player.listo = true;
        }