public NetworkController(CommandAgent <T, W> commandAgent, string ipAddress, int port) { _networker = NetworkFactory.CreateNetworker <T, W>(ipAddress, port); _commandAgent = commandAgent; _networker.OnConnected += _networker_OnConnected; _networker.OnDisconnected += _networker_OnDisconnected; _networker.OnError += _networker_OnError; _networker.OnMessageReceivedSuccess += _networker_OnMessageReceivedSuccess; }