public Server_PlayerMessagesHandler(NetworkBehaviour _server) : base(_server) { _server.AddMessageHandler(NetworkProtocal.RegisterPlayerMessage, OnPlayerRegister); _server.AddMessageHandler(NetworkProtocal.RequestEndTurnMessage, OnPlayerRequestEndTurn); }
public Test_MessageHandlerClass(NetworkBehaviour _behaviour) : base(_behaviour) { _behaviour.AddMessageHandler(NetworkProtocal.EmptyMessage, OnEmptyMessage); }
public Client_CardMessageHandler (NetworkBehaviour _client) : base(_client) { _client.AddMessageHandler(NetworkProtocal.OnCardMovedMessage, OnCardMoved); }
public Client_StartGameMessage(NetworkBehaviour _client) : base(_client) { _client.AddMessageHandler(NetworkProtocal.StartGameMessaege, OnStartGameMessage); _client.AddMessageHandler(NetworkProtocal.EndTurnMessage, OnEndTurnMessage); _client.AddMessageHandler(NetworkProtocal.StartTurnMessage, OnStartTurnMessage); }
public Server_KeepAliveHandler(NetworkBehaviour _server) : base(_server) { _server.AddMessageHandler(NetworkProtocal.KeepAlive, OnKeepAlive); }
public Server_CardMessagesHandler(NetworkBehaviour _server) : base(_server) { _server.AddMessageHandler(NetworkProtocal.MoveCardMessage, OnCardMoved); }