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);
 }