コード例 #1
0
 /// <summary>
 /// Execute connect to server
 /// </summary>
 public override void Execute()
 {
     ServerConnectorService.Send(MsgStruct.SendPlayerID, new PingPlayerMessage
     {
         Id = NetworkPlayerService.NetworkLobbyPlayer.Id
     });
 }
コード例 #2
0
 /// <summary>
 /// Execute connect to server
 /// </summary>
 public override void Execute()
 {
     Debug.Log("PingPlayerIdToServerCommand");
     ServerConnectorService.Send(MsgStruct.SendPlayerID, new PingPlayerMessage
     {
         Id = NetworkPlayerService.NetworkLobbyPlayer.Id
     });
 }
コード例 #3
0
 /// <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
     });
 }