public Server_PlayerMessagesHandler(NetworkBehaviour _server) : base(_server)
 {
     _server.AddMessageHandler(NetworkProtocal.RegisterPlayerMessage, OnPlayerRegister);
     _server.AddMessageHandler(NetworkProtocal.RequestEndTurnMessage, OnPlayerRequestEndTurn);
 }
Пример #2
0
 public Test_MessageHandlerClass(NetworkBehaviour _behaviour) : base(_behaviour)
 {
     _behaviour.AddMessageHandler(NetworkProtocal.EmptyMessage, OnEmptyMessage);
 }
 public Client_CardMessageHandler (NetworkBehaviour _client) : base(_client)
 {
     _client.AddMessageHandler(NetworkProtocal.OnCardMovedMessage, OnCardMoved);
 }
Пример #4
0
 public Client_StartGameMessage(NetworkBehaviour _client) : base(_client)
 {
     _client.AddMessageHandler(NetworkProtocal.StartGameMessaege, OnStartGameMessage);
     _client.AddMessageHandler(NetworkProtocal.EndTurnMessage, OnEndTurnMessage);
     _client.AddMessageHandler(NetworkProtocal.StartTurnMessage, OnStartTurnMessage);
 }
Пример #5
0
 public Server_KeepAliveHandler(NetworkBehaviour _server) : base(_server)
 {
     _server.AddMessageHandler(NetworkProtocal.KeepAlive, OnKeepAlive);
 }
 public Server_CardMessagesHandler(NetworkBehaviour _server) : base(_server)
 {
     _server.AddMessageHandler(NetworkProtocal.MoveCardMessage, OnCardMoved);
 }