am7 pubg mobile code example
Example: am7 pubg mobile
foreach (var box in _data.Boxes) { if (Algorithms.WorldToScreenItem(viewMatrix, box.Position, out Vector2 itemScreen, out int distance, _window.Width, _window.Height)) { // Too Far not render if (distance > 600) continue; DrawShadowText(gfx, _font, _yellow, new Point(itemScreen.X, itemScreen.Y), "Lootbox [" + distance.ToString() + "M]"); if (Settings.ShowLootItem && box.Items != null) { for (int j = 0; j < box.Items.Length; j++) { DrawShadowText(gfx, _font, _yellow, new Point(itemScreen.X, itemScreen.Y - 15 * (j + 1)), box.Items[j]); } } } }