예제 #1
0
        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");
        }
예제 #2
0
 public World(IBrickWorldEngine engine, Map map, BwTcpClient client)
 {
     _engine = engine;
     _client = client;
     Map     = map;
 }