private void clearHighlightTiles() { highlighttoupdate.Clear(); AIDataType[] aitypes = new AIDataType[BoardSize.x * BoardSize.y]; for (int i = 0; i < aitypes.Length; i++) { aitypes[i] = AIDataType.None; } highlighttmap.UpdateComplete(aitypes); }
public override void UpdateVisualMinesweeperComplete(MinesweeperGamestate gamestate) { List <int> state = new List <int>(gamestate.LengthX * gamestate.LengthY); for (int y = 0; y < gamestate.LengthY; y++) { for (int x = 0; x < gamestate.LengthX; x++) { state.Add(GetSpriteId(gamestate[x, y])); } } textureMap.UpdateComplete(state); clearHighlightTiles(); }