/// <summary> /// Execute connect to server /// </summary> public override void Execute() { ServerConnectorService.Send(MsgStruct.SendPlayerID, new PingPlayerMessage { Id = NetworkPlayerService.NetworkLobbyPlayer.Id }); }
/// <summary> /// Execute connect to server /// </summary> public override void Execute() { Debug.Log("PingPlayerIdToServerCommand"); ServerConnectorService.Send(MsgStruct.SendPlayerID, new PingPlayerMessage { Id = NetworkPlayerService.NetworkLobbyPlayer.Id }); }
/// <summary> /// Execute event add log /// </summary> public override void Execute() { // Register player on server ServerConnectorService.Send(MsgStruct.SendPlayer, new RegisterPlayerMessage { Id = NetworkPlayerService.NetworkLobbyPlayer.Id, Name = NetworkPlayerService.NetworkLobbyPlayer.Name }); }