Example #1
0
        //创建
        void CreateCell(int x, int z, int i)
        {
            HexCellItem hexCellItem = new HexCellItem(x, z);

            hexCellItem.borderState = BorderState.Normal;
            hexCellItem.coordinates = HexCoordinates.FromOffsetCoordinates(x, z, modelInfo.arrayMode);
            cellMap.Add(hexCellItem.coordinates, hexCellItem);
        }
Example #2
0
        //根据坐标获取一个地图格子



        public void UpdateCellItem(HexCellItem cellItem)
        {
            SendNotification(OrderSystemEvent.CHANGE_OVER, HexGrid, "CHANGEOVER");
        }