public void Start() { _client = new BwTcpClient(ServerIp, PortNumber); _client.ReadData += Client_ReadData; _client.SendText("get_map"); _bricks = new [] { Brick1, Brick2, Brick3, Brick4 }; foreach (var brick in _bricks) { for (var i = 0; i < 6; i++) { SetSideVisible(brick, i, false); } } StartCoroutine("Refresh"); StartCoroutine("SendPosition"); }
public World(IBrickWorldEngine engine, Map map, BwTcpClient client) { _engine = engine; _client = client; Map = map; }