from noise import snoise2
octaves = 5
freq = 20 * octaves
v = snoise2(tile_x / freq, tile_y / freq, octaves)
if v > 0.2:
static_tiles[y_pos][x_pos] = 1
private readonly string url = "https://kad.arbitr.ru/Card?number=";
private void OnWebBrowserFrameLoadEnded(object sender, FrameLoadEndEventArgs e)
{
Debug.WriteLine($"{nameof(OnWebBrowserFrameLoadEnded)}. " +
$"Frame.IsMain: {e.Frame.IsMain.ToString()}; e.Url: {e.Url};");
if (e.Frame.IsMain && e.Url.Contains(url))
{
Invoke((MethodInvoker)(async () =>
{
await UpdateData();
}));
}
}
document.querySelector('.case-print')
document.getElementsByClassName('xxx')[0].click();
[SerializeField] Item itemPrefab;
[SerializeField] Transform Canvas;
Item[] itemsGot;
void DrawAll()
{
for (int i = 0; i < itemsGot.Length; i++)
{
Item item = Instantiate(itemPrefab, new Vector2(300 + i*80, 500), Quaternion.identity, canvas).GetComponent<Item>();
item.params = itemsGot[i].params;
}
}