Unity 6000.0.62f1 · Complete offline documentation

Precinct Tycoon
Developer Guide

Install. Edit. Reskin. Build your release.

szekipapa77@gmail.com
Precinct Tycoon cover
CHAPTER 01

Start here: Precinct Tycoon

Precinct Tycoon is a standalone editable Unity game template. Move around the local police station using dragging or floor clicks, with keyboard movement in the desktop layout. Serve the lobby, dispatch cars from the radio console, process arrested people into cells, collect cash and expand through floor pads. Each timed shift has multiple goals.

Includes 25 curated levels, source-backed generation, a game-specific visual editor and validation, 4 guided helpers, local saving and portrait/landscape scenes. Keep the required private game Kit and publisher-owned Szekipapa77Ads layer. Provider SDK binaries are excluded. There is no bundled HLK, purchases, multiplayer server or remote LiveOps backend. Import only one game Kit into a project because the Kit classes share names.

CHAPTER 02

Requirements, installation and first play

Use Unity 6000.0.62f1, URP 17.0.4 and Unity UI 2.0.0. Install matching Android SDK/NDK/OpenJDK and WebGL modules in Unity Hub. Retain the supplied manifest and ProjectSettings.

  1. Extract the standalone project to a short writable local path, then open it in the matching editor. Wait for package import and compilation.
  2. For native unitypackage import, create a matching URP project and use Assets > Import Package > Custom Package. Import every game, Kit, Szekipapa77Ads and WebGL-template entry.
  3. Run Szekipapa77 > Precinct Tycoon > Setup. It configures rendering and player settings; review its changes when integrating with existing work.
  4. Active Input Handling must support the classic Input Manager: choose Old or Both. New Input System only is insufficient.
  5. Open Assets/Games/Precinct/Scenes/Precinct_Mobile.unity and press Play. Follow the level card and first-level instructions.
  6. Stop Play mode before editing level assets. Keep all .meta GUIDs. The game uses classic Unity UI Text; do not assume an extra TextMesh Pro import is required.
CHAPTER 03

Project folders and exact source map

All game-relative paths below start at Assets/Games/Precinct. Runtime UI is built in code; editing an unrelated static Canvas does not reskin it. Scripts contains game rules and views; Editor contains authoring tools; Kit supplies UI/audio/save/platform support; Resources/precinct contains level JSON, art, music and sound; Settings owns URP assets; Scenes contains both entry scenes.

Main flow: PrecinctGame.cs. UI and popup consumers: PrecinctGame.Hud.cs. Model/generator/loading: PtData.cs, PtGen.cs, PtLevels.cs, PtSim.cs. Authoring: Editor/PrecinctLevelEditor.cs. Shared ad settings live outside the game at Assets/Szekipapa77Ads/Resources/AdsSettings.asset.

CHAPTER 04

Gameplay, controls and progression

Move around the local police station using dragging or floor clicks, with keyboard movement in the desktop layout. Serve the lobby, dispatch cars from the radio console, process arrested people into cells, collect cash and expand through floor pads. Each timed shift has multiple goals.

The initial bank has 25 curated levels. Read the supplied loader/generator before changing continuation rules. Play the guided opening, ordinary progress, completion and retry paths; preserve saved indexes during a visual reskin. The Mobile scene is portrait and the WebGL-named scene is landscape, but the supplied Build menu selects portrait for both build targets. Select landscape explicitly in your Build Profile if desired. Test a near-startup scene replacement as well as a normal restart.

CHAPTER 05

Tutorials and every helper

Fresh local progress triggers the first-level guidance. Newly unlocked helpers have introduction and guided-use flows. Reset only a test save when reviewing tutorials. A free guided first use can differ from ordinary charge consumption. Exact helper names/unlocks/charges: Scripts/PrecinctGame.cs; help and effect descriptions: Scripts/PrecinctGame.cs.

HelperUnlockFree chargesAction and effect
Siren Rush32For 30 seconds, all cars and crews move and work at double speed.
Coffee Round62For 30 seconds the counter and booking desk run at double speed, and no one in line leaves.
Overtime101Puts one extra minute on the clock.
Cash Sweep152Empties all cash boxes in the building into your budget.

Activate the tool and perform its required target action: arming a tool alone does not demonstrate its effect. A successful use requires the stated preconditions from this game: show both activation and its actual effect. Exhausted charges may offer a rewarded ad; verify success/cancel/failure and grant a reward once only.

CHAPTER 06

Visual level editor: worked editing session

Open Szekipapa77 > Precinct Tycoon > Level Editor. Exact implementation: Editor/PrecinctLevelEditor.cs.

Duplicate an early entry in this game-specific visual editor, change its visible name and one rule, save, validate, then play it. Use the exact source-control table below for this game.

  1. Back up Resources/precinct/Levels/levels.json.
  2. Duplicate a simple early level and edit one small element.
  3. Use the game-specific validation controls and resolve every reported issue.
  4. Save explicitly; stop and restart Play mode, then use Play this level or navigate to the edited index.
  5. Check portrait and landscape and rebuild demo outputs after accepting data changes.

The exact current authoring controls, including tooltips and generator switches, follow. These are game-specific source references, not a generic editor feature list.

SourceExact current code
PrecinctLevelEditor.cs:38[MenuItem("Szekipapa77/Precinct Tycoon/Level Editor")]
PrecinctLevelEditor.cs:41[MenuItem("Szekipapa77/Precinct Tycoon/Validate All Shifts")]
PrecinctLevelEditor.cs:87if (EditorApplication.isPlaying) EditorGUILayout.HelpBox("The level editor works in Edit mode. Stop Play mode to edit shifts.", MessageType.Info);
PrecinctLevelEditor.cs:107if (GUILayout.Button(_dirty ? "Save*" : "Save", EditorStyles.toolbarButton, GUILayout.Width(70))) Save();
PrecinctLevelEditor.cs:108if (GUILayout.Button("Reload", EditorStyles.toolbarButton, GUILayout.Width(60)) && (!_dirty || EditorUtility.DisplayDialog("Reload", "Discard unsaved changes?", "Discard", "Cancel"))) Load();
PrecinctLevelEditor.cs:110if (GUILayout.Button("Validate selected", EditorStyles.toolbarButton, GUILayout.Width(115)) && Cur != null) ValidateUpTo(_sel, true);
PrecinctLevelEditor.cs:111if (GUILayout.Button("Validate all", EditorStyles.toolbarButton, GUILayout.Width(85))) ValidateUpTo(_file.levels.Length - 1, false);
PrecinctLevelEditor.cs:115if (GUILayout.Button("Play this shift", EditorStyles.toolbarButton, GUILayout.Width(100)) && Cur != null) Play(_sel + 1);
PrecinctLevelEditor.cs:126if (GUILayout.Button("Add")) { var l = _file.levels.ToList(); l.Insert(_sel + 1, new PtLevel { name = "New Shift", goals = new[] { new PtGoal { k = "resolved", n = 4 } }, types = new[] { "lost", "bike", "shoplift", "prowler" }, seed = 101 + l.Count * 13 }); _file.levels = l.ToArray(); _sel++; Changed(); }
PrecinctLevelEditor.cs:127if (GUILayout.Button("Duplicate") && Cur != null) { var l = _file.levels.ToList(); l.Insert(_sel + 1, JsonUtility.FromJson<PtLevel>(JsonUtility.ToJson(Cur))); _file.levels = l.ToArray(); _sel++; Changed(); }
PrecinctLevelEditor.cs:128if (GUILayout.Button("Delete") && Cur != null && _file.levels.Length > 1 && EditorUtility.DisplayDialog("Delete shift", $"Delete shift {_sel + 1} '{Cur.name}'?", "Delete", "Cancel")) { var l = _file.levels.ToList(); l.RemoveAt(_sel); _file.levels = l.ToArray(); _sel = Mathf.Clamp(_sel, 0, _file.levels.Length - 1); Changed(); }
PrecinctLevelEditor.cs:131if (GUILayout.Button("Move up") && _sel > 0) { (_file.levels[_sel], _file.levels[_sel - 1]) = (_file.levels[_sel - 1], _file.levels[_sel]); _sel--; Changed(); }
PrecinctLevelEditor.cs:132if (GUILayout.Button("Move down") && _sel < _file.levels.Length - 1) { (_file.levels[_sel], _file.levels[_sel + 1]) = (_file.levels[_sel + 1], _file.levels[_sel]); _sel++; Changed(); }
PrecinctLevelEditor.cs:141if (GUILayout.Button($"{i + 1}. {l.name}{tag} <size=9>d{l.diff:0}</size>{mark}", style)) { _sel = i; GUI.FocusControl(null); }
PrecinctLevelEditor.cs:151EditorGUILayout.LabelField($"Shift {_sel + 1}", EditorStyles.boldLabel);
PrecinctLevelEditor.cs:153L.name = EditorGUILayout.TextField("Name", L.name);
PrecinctLevelEditor.cs:154L.dur = EditorGUILayout.Slider("Clock (seconds)", L.dur, 120, 480);
PrecinctLevelEditor.cs:155L.pace = EditorGUILayout.Slider("999-call pace", L.pace, 0.5f, 2.2f);
PrecinctLevelEditor.cs:156L.walk = EditorGUILayout.Slider("Walk-in pace", L.walk, 0.5f, 2f);
PrecinctLevelEditor.cs:157L.hot = EditorGUILayout.Slider("Hot call chance", L.hot, 0, 0.6f);
PrecinctLevelEditor.cs:158L.districts = EditorGUILayout.IntSlider("Districts", L.districts, 1, PtData.Districts.Length);
PrecinctLevelEditor.cs:160L.breather = EditorGUILayout.ToggleLeft("Breather", L.breather, GUILayout.Width(100));
PrecinctLevelEditor.cs:161L.firstArrest = EditorGUILayout.ToggleLeft("First arrest guaranteed", L.firstArrest, GUILayout.Width(180));
PrecinctLevelEditor.cs:162L.tutorial = EditorGUILayout.ToggleLeft("Guided tutorial", L.tutorial == 1, GUILayout.Width(130)) ? 1 : 0;
PrecinctLevelEditor.cs:165hi = EditorGUILayout.Popup("First-time hint", hi, HintKeys.Select(h => h == "" ? "(none)" : h).ToArray());
PrecinctLevelEditor.cs:167L.seed = EditorGUILayout.IntField("Seed", L.seed);
PrecinctLevelEditor.cs:172EditorGUILayout.LabelField("Call types this shift", EditorStyles.boldLabel);
PrecinctLevelEditor.cs:187EditorGUILayout.LabelField("Goals (all must be met before the clock runs out)", EditorStyles.boldLabel);
PrecinctLevelEditor.cs:207if (GUILayout.Button("x", GUILayout.Width(22))) { goals.RemoveAt(i); L.goals = goals.ToArray(); Changed(); GUIUtility.ExitGUI(); }
PrecinctLevelEditor.cs:210if (goals.Count < 3 && GUILayout.Button("Add goal", GUILayout.Width(100))) { goals.Add(new PtGoal { k = "reports", n = 4 }); L.goals = goals.ToArray(); Changed(); }
PrecinctLevelEditor.cs:214EditorGUILayout.LabelField("Build pads offered from this shift on (click a pad to toggle)", EditorStyles.boldLabel);
PrecinctLevelEditor.cs:220EditorGUILayout.HelpBox($"Bot: {r.wins}/{r.runs} wins · worst {r.worst * 100:0}% of the clock · avg {r.avg * 100:0}%" + (r.Ok ? " → OK" : " → NOT OK " + r.fail), r.Ok ? MessageType.Info : MessageType.Error);
PrecinctLevelEditor.cs:221if (GUILayout.Button("Validate this shift (bot plays shifts 1.." + (_sel + 1) + ")", GUILayout.Height(26))) ValidateUpTo(_sel, true);
PrecinctLevelEditor.cs:274EditorGUILayout.LabelField("Green = new on this shift · Blue = offered earlier · Grey = not offered yet. Needs-chains (e.g. Desk Clerk needs the Waiting Area) still apply.", EditorStyles.miniLabel);
PrecinctLevelEditor.cs:281EditorGUILayout.LabelField("Auto Generate (same generator + bot check as the game's endless shifts)", EditorStyles.boldLabel);
PrecinctLevelEditor.cs:282_genCount = EditorGUILayout.IntSlider("Count", _genCount, 1, 30);
PrecinctLevelEditor.cs:283_genAt = EditorGUILayout.IntSlider("Insert at shift", _genAt, 1, _file.levels.Length + 1);
PrecinctLevelEditor.cs:284_genSeed = EditorGUILayout.IntField("Seed", _genSeed);
PrecinctLevelEditor.cs:285EditorGUILayout.LabelField("Difficulty curve (sawtooth)");
PrecinctLevelEditor.cs:286_genFrom = EditorGUILayout.Slider(" start", _genFrom, 0.05f, 1f);
PrecinctLevelEditor.cs:287_genTo = EditorGUILayout.Slider(" end", _genTo, 0.05f, 1f);
PrecinctLevelEditor.cs:288_genSpan = EditorGUILayout.IntSlider(" ramp length (shifts)", _genSpan, 1, 60);
PrecinctLevelEditor.cs:289_genBreather = EditorGUILayout.IntSlider(" breather every", _genBreather, 0, 10);
PrecinctLevelEditor.cs:290_genReplace = EditorGUILayout.Toggle("Replace existing", _genReplace);
PrecinctLevelEditor.cs:301if (GUILayout.Button("Generate " + _genCount + " shifts (bot-checked)", GUILayout.Height(28))) Generate(curve);
CHAPTER 07

Generator, insertion and replacement

Use this editor generation panel, choose a reproducible seed and small count, review start/index and replace behavior, then generate, save and reopen. The source excerpt below identifies exact append/replace semantics.

SourceExact current code
PrecinctLevelEditor.cs:35bool _genReplace;
PrecinctLevelEditor.cs:290_genReplace = EditorGUILayout.Toggle("Replace existing", _genReplace);
PrecinctLevelEditor.cs:337if (_genReplace) { int n = Mathf.Min(made.Count, list.Count - at); list.RemoveRange(at, Mathf.Max(0, n)); }
PrecinctLevelEditor.cs:338list.InsertRange(at, made);

Worked extension: back up the bank, generate a small set at moderate difficulty using the exact per-game controls, validate them, then Save. Reopen the JSON and confirm the count changed. Do not assume every editor has the same insertion behavior: the actual implementation below distinguishes insert, append and replace. Runtime continuation does not automatically append new records to project JSON. Validation and bot scores help find problems but do not certify a pleasant human difficulty curve.

CHAPTER 08

Actual level JSON and identifiers

Canonical asset: Assets/Games/Precinct/Resources/precinct/Levels/levels.json. Array order controls visible numbering. Preserve numeric/boolean types, root version fields where present and resource/save identifiers. The actual first record is shown below; use the editor for structured coordinates and block/word data.

{
  "name": "First Day",
  "dur": 420,
  "goals": [
    {
      "k": "resolved",
      "n": 1,
      "id": ""
    },
    {
      "k": "build",
      "n": 1,
      "id": "waiting"
    },
    {
      "k": "build",
      "n": 1,
      "id": "clerk1"
    }
  ],
  "types": [
    "lost",
    "bike"
  ],
  "pace": 0.8,
  "walk": 1,
  "hot": 0,
  "pads": [
    "waiting",
    "clerk1"
  ],
  "districts": 1,
  "breather": false,
  "firstArrest": false,
  "hint": "tutorial",
  "tutorial": 1,
  "seed": 101,
  "diff": 9
}

Root keys: version, levels. Inspect PtData.cs, PtGen.cs, PtLevels.cs, PtSim.cs for field semantics and validation. Keep visible names/hints distinct from technical keys. The game-specific board, wave, card, opponent or question records are gameplay data; UI translation is separate.

CHAPTER 09

Reskin recipe: interface colours

Stop Play mode and open Scripts/PrecinctGame.Hud.cs. Find Navy, currently #18264A. Change that hex literal to #42C9B0, preserve its symbol/type, compile and reopen the scene. Review HUD, menus, helper cards, settings/results and both orientations. Art sprites and procedural fallback shapes can have additional colours; edit them deliberately.

Actual consumers of this symbol are listed first, then all current palette/hex assignments. Editor-only palettes do not control the runtime. Preserve state/goal contrast and rebuild after accepting a change.

SourceExact current code
PrecinctGame.Hud.cs:78 / void BuildHud()var p = HzUI.Panel(name, parent, NavyA, 50);
PrecinctGame.Hud.cs:117 / void BuildTopBar()var set = HzIcons.IconButton(_hud, Ic.Settings, NavyA, OpenSettings, 100);
PrecinctGame.Hud.cs:119 / void BuildTopBar()_soundBtn = HzIcons.IconButton(_hud, HzAudio.Muted ? HzIcons.SoundOff : HzIcons.SoundOn, NavyA, () =>
PrecinctGame.Hud.cs:171 / void BuildObjective()var sq = HzUI.Panel("IconBg", card.transform, Navy, 22);
PrecinctGame.Hud.cs:182 / void BuildObjective()_skipBtn = HzUI.Button("Skip", _hud, "Skip guide", NavyA, White, () => { DebugCommand("skiptut"); HzAudio.Play(Sfx.Select, 0.5f); }, 32, 20);
PrecinctGame.Hud.cs:258 / void BuildMiniMap()var frame = HzUI.Panel("MiniMap", _hud, Navy, 26);
PrecinctGame.Hud.cs:267 / void BuildMiniMap()var lbl = HzUI.Panel("Lbl", frame.transform, NavyA, 14); lbl.rectTransform.Place(new Vector2(0, 1), new Vector2(170, 44), new Vector2(18, -16), new Vector2(0, 1));
PrecinctGame.Hud.cs:269 / void BuildMiniMap()var station = HzUI.Panel("Station", _mini, Navy, 18); station.sprite = HzUI.Circle(); station.raycastTarget = false;
PrecinctGame.Hud.cs:324 / void UpdateMapPins(RectTransform layer, List<Image> pins, List<Image> cars, float pinSize, int selected)p.color = ((int)(_worldT * 4) % 2 == 0) ? Blue : Navy;
PrecinctGame.Hud.cs:447 / void BuildTags()var wi = HzUI.Panel("Inner", wbg.transform, Navy, 30); wi.sprite = HzUI.Circle(); wi.raycastTarget = false; wi.rectTransform.Stretch(16);
PrecinctGame.Hud.cs:750 / void CallBanner(Incident inc)var bg = HzUI.Panel("Banner", _hud, Navy, 34);
PrecinctGame.Hud.cs:759 / void CallBanner(Incident inc)_bannerBg.color = inc.hot ? HzUI.Hex("#B8860B") : Navy;
PrecinctGame.Hud.cs:815 / void BuildDispatchPanel()var head = HzUI.Panel("Head", card.transform, Navy, 40);
PrecinctGame.Hud.cs:845 / void BuildDispatchPanel()var st = HzUI.Panel("Station", _dMap, Navy, 30); st.sprite = HzUI.Circle(); st.raycastTarget = false;
PrecinctGame.Hud.cs:853 / void BuildDispatchPanel()var chip = HzUI.Panel("L", leg, NavyA, 20); chip.rectTransform.Place(new Vector2(0, 0), new Vector2(140, 46), new Vector2(i * 148, 0), new Vector2(0, 0));
PrecinctGame.Hud.cs:1050 / void OpenManage()var head = HzUI.Panel("Head", card.transform, Navy, 40);
PrecinctGame.Hud.cs:1246 / void WelcomePopup(Action start, Action skip)CardImage(c, PtArt.Get("emblem"), 170, Ic.Shield, Navy);
PrecinctGame.Hud.cs:1256 / void ShiftCard(Action done)var c = NewCard("Shift " + _shiftNo, Navy);
PrecinctGame.Hud.cs:1301 / void HintPopup(string key, Action done)CardImage(c, null, 150, h.icon, Navy);
PrecinctGame.Hud.cs:1386 / void HowToPlay(bool wasPaused)var c = NewCard("How to play", Navy, 980);
PrecinctGame.World.cs:70 / void SetupLook()public const string Brick = "#A85A40", BrickDark = "#8A4732", Wall = "#EEEAE2", WallTop = "#D8D2C6", Navy = "#18264A", Blue = "#2F7BFF", Yellow = "#FFD21F",
PrecinctGame.World.cs:214 / void BuildWall(MB mb, Wall w)var metal = M(C.Navy, 0.5f);
PrecinctGame.World.cs:247 / void BuildWall(MB mb, Wall w)var navy = M(C.Navy, 0.4f);
PrecinctGame.World.cs:251 / void BuildWall(MB mb, Wall w)mb.Cyl(c + dir * 1.3f + new Vector3(0, 0.7f, -0.25f), 0.06f, 1.4f, M(C.Navy), 8);
PrecinctGame.World.cs:283 / void BuildProp(MB mb, Prop p)var white = M(C.White, 0.3f); var navy = M(C.Navy, 0.3f);
PrecinctGame.World.cs:370 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.45f, -0.85f), new Vector3(0.5f, 0.08f, 0.45f), M(C.Navy), q);
PrecinctGame.World.cs:371 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.45f, 0.85f), new Vector3(0.5f, 0.08f, 0.45f), M(C.Navy), q);
PrecinctGame.World.cs:402 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.45f, 0.75f), new Vector3(0.5f, 0.08f, 0.45f), M(C.Navy), q); // chair
PrecinctGame.World.cs:403 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.75f, 0.98f), new Vector3(0.5f, 0.55f, 0.07f), M(C.Navy), q);
PrecinctGame.World.cs:542 / void BuildPerson(MB mb, string role, int v)string shirt, pants = C.Navy, hat = null; bool vest = false, cap = false;
PrecinctGame.World.cs:545 / void BuildPerson(MB mb, string role, int v)case "player": shirt = C.Navy; vest = true; cap = true; hat = C.Navy; break;
PrecinctGame.World.cs:546 / void BuildPerson(MB mb, string role, int v)case "officer": case "sergeant": shirt = C.Navy; vest = true; cap = true; hat = C.Navy; break;
PrecinctGame.World.cs:547 / void BuildPerson(MB mb, string role, int v)case "trafficop": shirt = C.Navy; vest = true; cap = true; hat = "#F4F5F7"; break;
PrecinctGame.World.cs:549 / void BuildPerson(MB mb, string role, int v)case "booking": shirt = "#DDE6F2"; pants = C.Navy; cap = true; hat = C.Navy; break;
SourceExact current code
PrecinctGame.cs:29 / class/static declarationsstatic readonly string[] BoostColor = { "#2F7BFF", "#A0673A", "#FF8A1F", "#3DBE6E" };
PrecinctGame.cs:221 / void LoseShift()Toast("One more minute!", HzUI.Hex("#FFD21F"), 1.4f, 0.7f);
PrecinctGame.cs:375 / void Interact(float dt)else if (_padOn != on) Toast("Out of cash - empty the money boxes first!", HzUI.Hex("#FF5A5A"), 1.4f, 0.75f);
PrecinctGame.cs:396 / void ProcessEvents()FloatText(WorldOf("counter" + e.b) + Vector3.up * 2.4f, "+£" + (int)e.f, HzUI.Hex("#FFC83D"));
PrecinctGame.cs:399 / void ProcessEvents()case "gaveup": HzAudio.Play(Sfx.GaveUp, 0.5f); CitizenLeave(e.a, true); FloatTextScreen("Someone left the line -1 rep", HzUI.Hex("#FF8A8A")); break;
PrecinctGame.cs:421 / void ProcessEvents()FloatTextScreen(t + " resolved +£" + (int)e.f + extra, HzUI.Hex("#45D07A"));
PrecinctGame.cs:430 / void ProcessEvents()FloatTextScreen((inc != null ? PtData.Inc[inc.type].Short : "Case") + " unsolved +£" + (int)e.f, HzUI.Hex("#FFB070"));
PrecinctGame.cs:439 / void ProcessEvents()FloatTextScreen((inc != null ? PtData.Inc[inc.type].Short : "A case") + " timed out -2 rep", HzUI.Hex("#FF6B6B"));
PrecinctGame.cs:445 / void ProcessEvents()case "parked": CrewHome(e.a); RefreshDispatchLists(); if (e.b == 1) Toast("A new car just pulled in!", HzUI.Hex("#7FD1FF"), 1.3f, 0.7f); break;
PrecinctGame.cs:447 / void ProcessEvents()case "custodyFull": FloatTextScreen("No room inside - extras were let go with a warning", HzUI.Hex("#FFB070")); break;
PrecinctGame.cs:450 / void ProcessEvents()case "booked": HzAudio.Play(Sfx.Booked, 0.7f); HzAudio.Play(Sfx.CellDoor, 0.5f); FloatText(WorldOf("custodyDesk") + Vector3.up * 2.4f, "+£" + (int)e.f, HzUI.Hex("#FFC83D")); break;
PrecinctGame.cs:452 / void ProcessEvents()case "interviewed": FloatText(new Vector3(PtLayout.InterviewSeat.x, 2.4f, PtLayout.InterviewSeat.z), "+£" + (int)e.f, HzUI.Hex("#FFC83D")); break;
PrecinctGame.cs:472 / void OnUnlocked(string id, int staffId, int vehId)FloatTextScreen(u.Name + " built!", HzUI.Hex("#45D07A"));
PrecinctGame.cs:478 / void OnUnlocked(string id, int staffId, int vehId)Toast("You can now send cars from any spot. Try the AUTO switch too!", HzUI.Hex("#7FD1FF"), 2.6f, 0.72f);
PrecinctGame.cs:495 / void FirstDetainee()Toast("Someone is waiting to be processed! Go to the booking desk.", HzUI.Hex("#FFD21F"), 3f, 0.72f);
PrecinctGame.cs:511 / public void UseBooster(int b)HzPlatform.Rewarded(GameId, "booster_" + b, ok => { if (ok) { SetCharges(b, Charges(b) + 1); HzAudio.Play(Sfx.Cash, 0.6f); Toast("+1 " + BoostName[b], HzUI.Hex("#FFD21F"), 1.1f, 0.7f); } });
PrecinctGame.cs:516 / public void UseBooster(int b)case BSiren: S.boostSiren = 30; HzAudio.Play(Sfx.Siren2, 0.8f); FloatTextScreen("Siren Rush! Cars and crews at 2x", HzUI.Hex("#7FB6FF")); break;
PrecinctGame.cs:517 / public void UseBooster(int b)case BCoffee: S.boostCoffee = 30; HzAudio.Play(Sfx.Coffee, 0.8f); FloatTextScreen("Coffee Round! Counters at 2x", HzUI.Hex("#FFD08A")); break;
PrecinctGame.cs:518 / public void UseBooster(int b)case BOver: S.shiftDur += 60; HzAudio.Play(Sfx.Overtime, 0.8f); FloatTextScreen("Overtime! +60 seconds", HzUI.Hex("#FFD21F")); break;
PrecinctGame.cs:524 / public void UseBooster(int b)FloatTextScreen(got > 0 ? "Cash Sweep! +£" + got : "Cash Sweep! (nothing in the boxes)", HzUI.Hex("#7CE0A0"));
PrecinctGame.Hud.cs:12 / class/static declarationsstatic readonly Color Navy = HzUI.Hex("#18264A"), NavyA = new Color(0.094f, 0.149f, 0.29f, 0.92f), Yellow = HzUI.Hex("#FFD21F"), Orange = HzUI.Hex("#FF8A1F"),
PrecinctGame.Hud.cs:13 / class/static declarationsGold = HzUI.Hex("#FFC83D"), Green = HzUI.Hex("#45D07A"), Blue = HzUI.Hex("#2F7BFF"), Cream = HzUI.Hex("#FFF6D6"), Ink = HzUI.Hex("#1D2440"), Muted = HzUI.Hex("#5E6683"),
PrecinctGame.Hud.cs:14 / class/static declarationsRed = HzUI.Hex("#FF5A5A"), White = Color.white, Paper = HzUI.Hex("#F3F5FA");
PrecinctGame.Hud.cs:169 / void BuildObjective()var edge = card.gameObject.AddComponent<Outline>(); edge.effectColor = HzUI.Hex("#F2C94C"); edge.effectDistance = new Vector2(3, -3);
PrecinctGame.Hud.cs:261 / void BuildMiniMap()var inner = HzUI.Panel("Map", frame.transform, HzUI.Hex("#D9D4F0"), 20);
PrecinctGame.Hud.cs:299 / static Color SevColor(Incident inc)return s == 1 ? HzUI.Hex("#3DBE6E") : s == 2 ? HzUI.Hex("#F5A623") : HzUI.Hex("#E5484D");
PrecinctGame.Hud.cs:311 / void UpdateMapPins(RectTransform layer, List<Image> pins, List<Image> cars, float pinSize, int selected)if (inc.status != "new") col = Color.Lerp(col, HzUI.Hex("#8A93A8"), 0.5f);
PrecinctGame.Hud.cs:618 / void CashFly(string tray, int amount)img.AddOutline(HzUI.Hex("#C98A12"), 3);
PrecinctGame.Hud.cs:619 / void CashFly(string tray, int amount)var t = Txt(img.transform, "£", 30, HzUI.Hex("#8A5A00"), TextAnchor.MiddleCenter); t.rectTransform.Stretch();
PrecinctGame.Hud.cs:759 / void CallBanner(Incident inc)_bannerBg.color = inc.hot ? HzUI.Hex("#B8860B") : Navy;
PrecinctGame.Hud.cs:824 / void BuildDispatchPanel()_autoBtn = HzUI.Button("Auto", head.transform, "AUTO: OFF", HzUI.Hex("#3A4B7A"), White, () =>
PrecinctGame.Hud.cs:833 / void BuildDispatchPanel()var mapFrame = HzUI.Panel("Map", card.transform, HzUI.Hex("#D9D4F0"), 28);
PrecinctGame.Hud.cs:840 / void BuildDispatchPanel()var dl = Txt(mapFrame.transform, d.Name.ToUpperInvariant(), P ? 30 : 34, HzUI.Hex("#4B3FA8"), TextAnchor.MiddleCenter);
PrecinctGame.Hud.cs:850 / void BuildDispatchPanel()string[] ln = { "Minor", "Serious", "Major", "Urgent" }; string[] lc = { "#3DBE6E", "#F5A623", "#E5484D", "#FFC83D" };
PrecinctGame.Hud.cs:906 / void BuildDispatchPanel()var sbg = HzUI.Panel("State", b.transform, HzUI.Hex("#DDF5E6"), 20); sbg.rectTransform.Place(new Vector2(1, 0.5f), new Vector2(200, 46), new Vector2(-14, 0), new Vector2(1, 0.5f)); sbg.raycastTarget = false;
PrecinctGame.Hud.cs:907 / void BuildDispatchPanel()var stt = Txt(sbg.transform, "", 26, HzUI.Hex("#1F7A45"), TextAnchor.MiddleCenter); stt.rectTransform.Stretch();
PrecinctGame.Hud.cs:949 / void RefreshDispatchLists()if (canAuto) { _autoBtn.SetText(S.autoDispatch ? "AUTO: ON" : "AUTO: OFF"); _autoBtn.GetComponent<Image>().color = S.autoDispatch ? Green : HzUI.Hex("#3A4B7A"); }
PrecinctGame.Hud.cs:975 / void RefreshDispatchLists()r.bg.color = inc.id == _selCall ? HzUI.Hex("#FFF1B8") : open ? Paper : HzUI.Hex("#E8EBF2");
PrecinctGame.Hud.cs:1000 / void RefreshDispatchLists()case "parked": state = "Ready"; sc = HzUI.Hex("#DDF5E6"); tc = HzUI.Hex("#1F7A45"); break;
PrecinctGame.Hud.cs:1001 / void RefreshDispatchLists()case "boarding": state = "Crew boarding"; sc = HzUI.Hex("#FFF1B8"); tc = HzUI.Hex("#8A6A00"); break;
PrecinctGame.Hud.cs:1002 / void RefreshDispatchLists()case "leaving": case "enroute": state = "Driving"; sc = HzUI.Hex("#DCE8FF"); tc = Blue; break;
PrecinctGame.Hud.cs:1003 / void RefreshDispatchLists()case "onscene": state = "At the scene"; sc = HzUI.Hex("#FFE2CC"); tc = HzUI.Hex("#B45A10"); break;
PrecinctGame.Hud.cs:1004 / void RefreshDispatchLists()default: state = v.delivery ? "Pulling in" : "Heading back"; sc = HzUI.Hex("#E8EBF2"); tc = Muted; break;
PrecinctGame.Hud.cs:1006 / void RefreshDispatchLists()if (selInc != null && v.status == "parked" && !PtSim.CanDispatch(S, selInc, v, out var why)) { state = why; sc = HzUI.Hex("#FBE3E3"); tc = HzUI.Hex("#B23A3A"); }
PrecinctGame.Hud.cs:1009 / void RefreshDispatchLists()r.bg.color = sel ? HzUI.Hex("#DCE8FF") : Paper;
PrecinctGame.Hud.cs:1015 / void RefreshDispatchLists()_sendBg.color = can ? Yellow : HzUI.Hex("#D7DBE5");
PrecinctGame.Hud.cs:1086 / void BuildManageContent()var row = HzUI.Panel("Goal", left, done ? HzUI.Hex("#DDF5E6") : White, 20); row.rectTransform.Place(new Vector2(0, 1), new Vector2(colW, 74), new Vector2(0, y), new Vector2(0, 1));
PrecinctGame.Hud.cs:1089 / void BuildManageContent()var pr = Txt(row.transform, done ? "Done!" : g.k == "build" ? "" : Mathf.Min(have, need) + " / " + need, 32, done ? HzUI.Hex("#1F7A45") : Ink, TextAnchor.MiddleRight); pr.rectTransform.Place(new Vector2(1, 0.5f), new Vector2(180, 60), new Vector2(-20, 0), new Vector2(1, 0.5f));
PrecinctGame.Hud.cs:1131 / void BuildManageContent()var c = HzUI.Panel("Cost", row.transform, afford ? Yellow : HzUI.Hex("#E8EBF2"), 18); c.rectTransform.Place(new Vector2(1, 0.5f), new Vector2(150, 56), new Vector2(-16, 0), new Vector2(1, 0.5f)); c.raycastTarget = false;
PrecinctGame.Hud.cs:1170 / void DropCards()var card = HzUI.Panel("Card", dim.transform, HzUI.Hex("#FFFBF2"), 48);
PrecinctGame.Hud.cs:1204 / void CardRow(Card c, string icon, string text, string right, Color iconCol)var row = HzUI.Panel("Row", c.card, HzUI.Hex("#F1EEE6"), 22);
PrecinctGame.Hud.cs:1250 / void WelcomePopup(Action start, Action skip)var sk = CardButton(c, "Skip the guide", HzUI.Hex("#E9E4D8"), Muted, skip, 80, 34);
PrecinctGame.Hud.cs:1258 / void ShiftCard(Action done)if (L.breather) CardText(c, "A slower shift - take it easy!", 30, HzUI.Hex("#1F7A45"), 44);
PrecinctGame.Hud.cs:1276 / void UnlockPopup(int b, Action done)CardText(c, "Here are " + BoostStart[b] + " on the house - give it a go!", 30, HzUI.Hex("#1F7A45"), 50);
PrecinctGame.Hud.cs:1314 / void WinPopup(int stars, int wages, int grant, int bonus, Action next)var bg = Icn(row, Ic.Star, i == 1 ? 170 : 130, HzUI.Hex("#E3DCCB")); bg.rectTransform.Place(new Vector2(0.5f, 0.5f), new Vector2(170, 170), new Vector2((i - 1) * 165, i == 1 ? 14 : -6));
PrecinctGame.Hud.cs:1318 / void WinPopup(int stars, int wages, int grant, int bonus, Action next)s.AddOutline(HzUI.Hex("#C98A12"), 3);
PrecinctGame.Hud.cs:1353 / void RankPopup(int r, int bonus)var c = NewCard("Promoted!", HzUI.Hex("#7B61FF"));
PrecinctGame.Hud.cs:1371 / void OpenSettings()sound = CardButton(c, HzAudio.Muted ? "Sound: OFF" : "Sound: ON", HzUI.Hex("#4C9EEB"), White, null, 104, 46);
PrecinctGame.Hud.cs:1374 / void OpenSettings()music = CardButton(c, HzAudio.MusicMuted ? "Music: OFF" : "Music: ON", HzUI.Hex("#4C9EEB"), White, null, 104, 46);
PrecinctGame.Hud.cs:1379 / void OpenSettings()CardButton(c, "Close", HzUI.Hex("#8A93A8"), White, null, 104, 46);
PrecinctGame.World.cs:23 / void SetupLook()_cam.backgroundColor = HzUI.Hex("#BFD8C4");
PrecinctGame.World.cs:34 / void SetupLook()_sun.color = HzUI.Hex("#FFF1DC"); _sun.intensity = 1.25f;
PrecinctGame.World.cs:41 / void SetupLook()fill.transform.rotation = Quaternion.Euler(35, 150, 0); fill.color = HzUI.Hex("#B9D2FF"); fill.intensity = 0.35f;
PrecinctGame.World.cs:44 / void SetupLook()RenderSettings.ambientSkyColor = HzUI.Hex("#C9D6E8");
PrecinctGame.World.cs:45 / void SetupLook()RenderSettings.ambientEquatorColor = HzUI.Hex("#B6AFA4");
PrecinctGame.World.cs:46 / void SetupLook()RenderSettings.ambientGroundColor = HzUI.Hex("#6B6460");
PrecinctGame.World.cs:55 / void SetupLook()if (prof.TryGet<Vignette>(out var vg)) { vg.intensity.Override(0.18f); vg.smoothness.Override(0.5f); vg.color.Override(HzUI.Hex("#101830")); }
PrecinctGame.World.cs:70 / void SetupLook()public const string Brick = "#A85A40", BrickDark = "#8A4732", Wall = "#EEEAE2", WallTop = "#D8D2C6", Navy = "#18264A", Blue = "#2F7BFF", Yellow = "#FFD21F",
PrecinctGame.World.cs:71 / void SetupLook()Orange = "#FF8A1F", Gold = "#FFC83D", Green = "#45D07A", Wood = "#B98457", WoodDark = "#8C5F3C", Metal = "#9AA3AD", MetalDark = "#59616B",
PrecinctGame.World.cs:72 / void SetupLook()Glass = "#8EC9F0", Screen = "#2D3E66", Tile = "#C9CED2", Carpet = "#8FA3BC", Lino = "#D9D2C4", Cells = "#AEB4BA", Asphalt = "#7D838A", Road = "#5D636A",
PrecinctGame.World.cs:73 / void SetupLook()Pavement = "#CFCAC0", Grass = "#8CC27A", Plant = "#4FA35A", Pot = "#C46B4A", White = "#F4F5F7", Rubber = "#2A2D33", Line = "#F2F2EA", Fabric = "#4C7FC9";
PrecinctGame.World.cs:85 / void BuildStatic()mb.Box(new Vector3(-2, 0.0f, -3.45f), new Vector3(110, 0.12f, 0.25f), M("#B5B0A6"));
PrecinctGame.World.cs:89 / void BuildStatic()string[] fronts = { "#E9C9A6", "#C9D8E6", "#E8B5A5", "#D9E3C3", "#F0D9A8", "#CBBFE0" };
PrecinctGame.World.cs:95 / void BuildStatic()mb.Box(new Vector3(x, h + 0.2f, -15.5f), new Vector3(8.1f, 0.4f, 5.3f), M("#7B5D52"));
PrecinctGame.World.cs:97 / void BuildStatic()mb.Box(new Vector3(x, 1.1f, -12.98f), new Vector3(1.2f, 2.2f, 0.06f), M("#5E4A3E"));
PrecinctGame.World.cs:102 / void BuildStatic()for (int i = 0; i < 6; i++) { float x = -30 + i * 11; mb.Cyl(new Vector3(x, 1.8f, -3.0f), 0.07f, 3.6f, M(C.MetalDark), 8); mb.Sphere(new Vector3(x, 3.7f, -3.0f), new Vector3(0.22f, 0.18f, 0.22f), PtMats.Lit("#FFF4C9", 0.6f)); }
PrecinctGame.World.cs:109 / static void Tree(MB mb, Vector3 p, float s)mb.Sphere(p + new Vector3(0, 2.2f * s, 0), new Vector3(1.2f, 1.1f, 1.2f) * s, M("#5BAE5E", 0.1f), 10, 7);
PrecinctGame.World.cs:110 / static void Tree(MB mb, Vector3 p, float s)mb.Sphere(p + new Vector3(0.5f, 2.8f * s, 0.2f), new Vector3(0.8f, 0.75f, 0.8f) * s, M("#6DBE6A", 0.1f), 10, 7);
PrecinctGame.World.cs:141 / void RefreshStation(bool anim, string newId = null)glow.Box(new Vector3(9 + 1.3f, 1.55f, -0.25f), new Vector3(0.3f, 0.36f, 0.3f), PtMats.Unlit(HzUI.Hex("#6FA8FF") * 1.6f, "lamp"));
PrecinctGame.World.cs:157 / void BuildFloors(MB mb)if (!on) m = PtMats.Lit("#B8B2A8", 0.1f, PtTex.Paving);
PrecinctGame.World.cs:180 / void BuildFloors(MB mb)mb.Box(new Vector3(9, 0.02f, 0.9f), new Vector3(1.8f, 0.03f, 1.2f), M("#3D4B6B", 0.05f));
PrecinctGame.World.cs:181 / void BuildFloors(MB mb)mb.Box(new Vector3(9, 0.03f, -0.5f), new Vector3(2.4f, 0.06f, 0.9f), M("#BDB7AC"));
PrecinctGame.World.cs:210 / void BuildWall(MB mb, Wall w)mb.Box(mid + Vector3.up * (w.H + 0.05f), new Vector3(sl + 0.04f, 0.1f, th + 0.08f), M("#E3DDD2"), rot);
PrecinctGame.World.cs:231 / void BuildWall(MB mb, Wall w)mb.Box(mid + Vector3.up * w.H / 2, new Vector3(sl, w.H, th), M("#C8CDD3", 0.2f), rot);
PrecinctGame.World.cs:236 / void BuildWall(MB mb, Wall w)mb.Box(mid + Vector3.up * 0.06f, new Vector3(sl, 0.12f, th + 0.02f), M("#5E6B80"), rot);
PrecinctGame.World.cs:290 / void BuildProp(MB mb, Prop p)for (int i = -2; i <= 2; i++) mb.Box(L(i * 1.75f, 1.45f, -0.05f), new Vector3(1.6f, 0.75f, 0.03f), PtMats.Lit("#CFE8F7", 0.9f), q);
PrecinctGame.World.cs:308 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 1.0f, 0), new Vector3(1.6f, 0.9f, 0.05f), M("#C7A27A"), q);
PrecinctGame.World.cs:309 / void BuildProp(MB mb, Prop p)for (int i = 0; i < 5; i++) mb.Box(L(-0.6f + i * 0.3f, 1.0f + (i % 2) * 0.15f, -0.03f), new Vector3(0.22f, 0.28f, 0.01f), M(i % 2 == 0 ? "#FFFFFF" : "#FFE8A0"), q);
PrecinctGame.World.cs:322 / void BuildProp(MB mb, Prop p)mb.Cyl(L(0, 1.35f, 0), 0.2f, 0.5f, PtMats.Lit("#9FD3FF", 0.9f), 10);
PrecinctGame.World.cs:334 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 1.15f, 0), new Vector3(0.55f, 0.5f, 0.45f), M("#2C2F35", 0.5f), q);
PrecinctGame.World.cs:335 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 1.15f, -0.23f), new Vector3(0.3f, 0.2f, 0.02f), M("#D94B3B"), q);
PrecinctGame.World.cs:341 / void BuildProp(MB mb, Prop p)mb.Box(L(-0.9f + i * 0.6f, 0.95f, 0), new Vector3(0.56f, 1.9f, 0.5f), M(i % 2 == 0 ? "#8FA0B5" : "#7F91A7", 0.45f), q);
PrecinctGame.World.cs:359 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.3f, 0), new Vector3(p.Hx * 2, 0.45f, p.Hz * 2), M("#9EA6AF"), q);
PrecinctGame.World.cs:360 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.56f, 0), new Vector3(p.Hx * 2 - 0.1f, 0.08f, p.Hz * 2 - 0.1f), M("#5B7DB0"), q);
PrecinctGame.World.cs:363 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.74f, 0), new Vector3(p.Hx * 2, 0.08f, p.Hz * 2 + 0.1f), M("#5C6676"), q);
PrecinctGame.World.cs:368 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.74f, 0), new Vector3(p.Hx * 2, 0.07f, p.Hz * 2), M("#D9D5CC"), q);
PrecinctGame.World.cs:375 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.25f, 0), new Vector3(p.Hx * 2, 0.5f, p.Hz * 2), M("#E07B5A", 0.1f), q);
PrecinctGame.World.cs:376 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.65f, p.Hz - 0.12f), new Vector3(p.Hx * 2, 0.5f, 0.24f), M("#D06A4A", 0.1f), q);
PrecinctGame.World.cs:380 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.74f, -0.3f), new Vector3(p.Hx * 2, 0.08f, 0.6f), M("#5C6676"), q);
PrecinctGame.World.cs:392 / void BuildProp(MB mb, Prop p)mb.Box(L(0, 0.08f, p.Hz - 0.35f), new Vector3(1.4f, 0.16f, 0.25f), M("#E3DDD2"), q);
PrecinctGame.World.cs:414 / void BuildGlow(MB g, Prop p)var scr = PtMats.Unlit(HzUI.Hex("#7FC2FF"), "scr");
PrecinctGame.World.cs:415 / void BuildGlow(MB g, Prop p)var scr2 = PtMats.Unlit(HzUI.Hex("#9FF0C8"), "scr2");
PrecinctGame.World.cs:424 / void BuildGlow(MB g, Prop p)case "scanner": g.Box(L(0, 1.39f, 0), new Vector3(0.2f, 0.01f, 0.15f), PtMats.Unlit(HzUI.Hex("#5BFF9A"), "scan"), q); break;
PrecinctGame.World.cs:457 / void BuildTrays(Transform root)mb.Box(new Vector3(0, 0.05f, 0), new Vector3(1.1f, 0.1f, 0.8f), M("#2F9E5B", 0.4f));
PrecinctGame.World.cs:458 / void BuildTrays(Transform root)mb.Box(new Vector3(0, 0.12f, 0), new Vector3(1.0f, 0.05f, 0.7f), M("#3DBE6E", 0.3f));
PrecinctGame.World.cs:462 / void BuildTrays(Transform root)var cash = M("#7ED67E", 0.2f); var band = M(C.Gold, 0.5f);
PrecinctGame.World.cs:500 / void PunchRing(string at) => _ringPunch[at] = 0.35f;static readonly string[] Skins = { "#F2C9A6", "#E0AC84", "#C68863", "#8D5A3B", "#F5D7BD", "#B07650" };
PrecinctGame.World.cs:501 / void PunchRing(string at) => _ringPunch[at] = 0.35f;static readonly string[] Shirts = { "#E35D5D", "#4FA3E0", "#F2B33D", "#6DBE6A", "#A57BD6", "#F28CB0", "#4CC2B5", "#E0884F" };
PrecinctGame.World.cs:502 / void PunchRing(string at) => _ringPunch[at] = 0.35f;static readonly string[] Hairs = { "#3B2A20", "#7A4A2A", "#D9B061", "#1E1E22", "#A33B2A", "#8C8C8C" };
PrecinctGame.World.cs:547 / void BuildPerson(MB mb, string role, int v)case "trafficop": shirt = C.Navy; vest = true; cap = true; hat = "#F4F5F7"; break;
PrecinctGame.World.cs:548 / void BuildPerson(MB mb, string role, int v)case "clerk": shirt = "#F4F5F7"; pants = "#3A4256"; break;
PrecinctGame.World.cs:549 / void BuildPerson(MB mb, string role, int v)case "booking": shirt = "#DDE6F2"; pants = C.Navy; cap = true; hat = C.Navy; break;
PrecinctGame.World.cs:550 / void BuildPerson(MB mb, string role, int v)case "dispatcher": shirt = "#7FA6D9"; pants = "#3A4256"; break;
PrecinctGame.World.cs:551 / void BuildPerson(MB mb, string role, int v)case "detainee": shirt = "#8B8F96"; pants = "#4A4D55"; break;
PrecinctGame.World.cs:552 / void BuildPerson(MB mb, string role, int v)default: shirt = Shirts[v % Shirts.Length]; pants = (v % 3 == 0) ? "#4A5A7A" : (v % 3 == 1) ? "#5B4A3E" : "#2E3440"; break;
PrecinctGame.World.cs:554 / void BuildPerson(MB mb, string role, int v)var skinM = M(skin, 0.3f); var shirtM = M(shirt, 0.2f); var pantsM = M(pants, 0.2f); var shoe = M("#26282E", 0.4f);
PrecinctGame.World.cs:563 / void BuildPerson(MB mb, string role, int v)var vm = PtMats.Lit("#D7F23A", 0.4f);
PrecinctGame.World.cs:565 / void BuildPerson(MB mb, string role, int v)mb.Box(new Vector3(0, 0.64f, 0.27f), new Vector3(0.4f, 0.05f, 0.02f), M("#E6E6E6", 0.8f));
PrecinctGame.World.cs:574 / void BuildPerson(MB mb, string role, int v)var eye = M("#1E1E24", 0.6f);
PrecinctGame.World.cs:581 / void BuildPerson(MB mb, string role, int v)mb.Box(new Vector3(0, 1.48f, 0.27f), new Vector3(0.42f, 0.03f, 0.2f), M("#111522", 0.6f));
PrecinctGame.World.cs:582 / void BuildPerson(MB mb, string role, int v)mb.Cyl(new Vector3(0, 1.52f, 0), 0.318f, 0.06f, M("#E8E8E8"), 14, null, false); // hat band all round
PrecinctGame.World.cs:596 / void BuildCar(MB mb, string type)var body = M(d.Body, 0.6f); var acc = M(d.Accent, 0.5f); var glass = M("#2B3950", 0.85f); var tyre = M(C.Rubber, 0.2f); var hub = M(C.Metal, 0.7f);
PrecinctGame.World.cs:625 / void BuildCar(MB mb, string type)mb.Box(new Vector3(0, 0.42f, -len / 2 - 0.03f), new Vector3(w - 0.1f, 0.16f, 0.08f), M("#3A3D44"));
PrecinctGame.World.cs:626 / void BuildCar(MB mb, string type)mb.Box(new Vector3(0, 0.42f, len / 2 + 0.03f), new Vector3(w - 0.1f, 0.16f, 0.08f), M("#3A3D44"));
PrecinctGame.World.cs:627 / void BuildCar(MB mb, string type)mb.Box(new Vector3(-0.65f, 0.68f, len / 2 + 0.01f), new Vector3(0.35f, 0.14f, 0.04f), M("#FFF6CC", 0.9f));
PrecinctGame.World.cs:628 / void BuildCar(MB mb, string type)mb.Box(new Vector3(0.65f, 0.68f, len / 2 + 0.01f), new Vector3(0.35f, 0.14f, 0.04f), M("#FFF6CC", 0.9f));
PrecinctGame.World.cs:629 / void BuildCar(MB mb, string type)mb.Box(new Vector3(-0.65f, 0.68f, -len / 2 - 0.01f), new Vector3(0.3f, 0.14f, 0.04f), M("#E0453A", 0.6f));
PrecinctGame.World.cs:630 / void BuildCar(MB mb, string type)mb.Box(new Vector3(0.65f, 0.68f, -len / 2 - 0.01f), new Vector3(0.3f, 0.14f, 0.04f), M("#E0453A", 0.6f));
PrecinctGame.World.cs:641 / void BuildCar(MB mb, string type)mb.Box(new Vector3(0, top + 0.04f, -0.1f), new Vector3(1.1f, 0.08f, 0.28f), M("#2A2D33"));
PrecinctGame.World.cs:661 / void AddLightBar(Transform car, string type)a = Part("BlueOn", HzUI.Hex("#4F9BFF") * 2.2f, -0.28f, "lbOn"),
PrecinctGame.World.cs:662 / void AddLightBar(Transform car, string type)a2 = Part("BlueOff", HzUI.Hex("#1A3A7A"), -0.28f, "lbOff"),
PrecinctGame.World.cs:663 / void AddLightBar(Transform car, string type)b = Part("BlueOn2", HzUI.Hex("#4F9BFF") * 2.2f, 0.28f, "lbOn"),
PrecinctGame.World.cs:664 / void AddLightBar(Transform car, string type)b2 = Part("BlueOff2", HzUI.Hex("#1A3A7A"), 0.28f, "lbOff"),
PrecinctGame.World.cs:1074 / void EnsureGuideObjects()var y = PtMats.Unlit(HzUI.Hex("#FFD21F") * 1.1f, "arrow");
PtData.cs:104 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Veh["cruiser"] = new VehDef { Id = "cruiser", Name = "Patrol Car", Seats = 2, Cage = 1, Speed = 46, Body = "#F4F5F7", Accent = "#18264A" };
PtData.cs:105 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Veh["van"] = new VehDef { Id = "van", Name = "Transport Van", Seats = 3, Cage = 3, Speed = 38, Caps = new[] { "cordon" }, Body = "#F4F5F7", Accent = "#2F7BFF", Length = 4.9f };
PtData.cs:106 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Veh["suv"] = new VehDef { Id = "suv", Name = "Response SUV", Seats = 3, Cage = 1, Speed = 54, Caps = new[] { "cordon" }, Body = "#18264A", Accent = "#FFD21F", Length = 4.5f };
PtData.cs:107 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Veh["traffic"] = new VehDef { Id = "traffic", Name = "Road Unit Car", Seats = 2, Cage = 1, Speed = 60, Caps = new[] { "traffic" }, Body = "#F4F5F7", Accent = "#FFD21F" };
CHAPTER 10

Reskin recipe: visible menu and HUD text

Open Scripts/PrecinctGame.cs, find the displayed literal "Precinct Tycoon", and replace its displayed value with "Precinct Tycoon Edition". Keep hierarchy names and technical IDs unchanged. In HzUI.Label/Button calls the first string may be an object name; change the displayed text argument. Read the method references below to distinguish construction from later refresh assignments.

Preserve interpolation braces, invariant number formatting, ON/OFF updates and line breaks. Update both initial and refresh paths, portrait and landscape. Exact helper names/unlocks/charges: Scripts/PrecinctGame.cs; help and effect descriptions: Scripts/PrecinctGame.cs. Level names/hints remain separate JSON content. If a title appears in art, Title property or another screen, update those visible uses deliberately without renaming GameId, namespace, resources or save keys.

Hard-coded game strings do not automatically use shared localization. To translate the interface, route every display assignment through your translation table. Dictionaries, word banks and theme pools are independent gameplay assets and need separate validation. Test help, settings, results, tutorial and helper introductions after a fresh launch.

SourceExact current code
PrecinctGame.cs:26 / class/static declarationsstatic readonly string[] BoostName = { "Siren Rush", "Coffee Round", "Overtime", "Cash Sweep" };
PrecinctGame.cs:221 / void LoseShift()Toast("One more minute!", HzUI.Hex("#FFD21F"), 1.4f, 0.7f);
PrecinctGame.cs:375 / void Interact(float dt)else if (_padOn != on) Toast("Out of cash - empty the money boxes first!", HzUI.Hex("#FF5A5A"), 1.4f, 0.75f);
PrecinctGame.cs:445 / void ProcessEvents()case "parked": CrewHome(e.a); RefreshDispatchLists(); if (e.b == 1) Toast("A new car just pulled in!", HzUI.Hex("#7FD1FF"), 1.3f, 0.7f); break;
PrecinctGame.cs:478 / void OnUnlocked(string id, int staffId, int vehId)Toast("You can now send cars from any spot. Try the AUTO switch too!", HzUI.Hex("#7FD1FF"), 2.6f, 0.72f);
PrecinctGame.cs:495 / void FirstDetainee()Toast("Someone is waiting to be processed! Go to the booking desk.", HzUI.Hex("#FFD21F"), 3f, 0.72f);
PrecinctGame.cs:507 / public void UseBooster(int b)if (!BoostUnlocked(b)) { HzAudio.Play(Sfx.Wrong, 0.5f); Toast(BoostName[b] + " opens up at Shift " + BoostUnlock[b], null, 1.3f, 0.7f); return; }
PrecinctGame.cs:511 / public void UseBooster(int b)HzPlatform.Rewarded(GameId, "booster_" + b, ok => { if (ok) { SetCharges(b, Charges(b) + 1); HzAudio.Play(Sfx.Cash, 0.6f); Toast("+1 " + BoostName[b], HzUI.Hex("#FFD21F"), 1.1f, 0.7f); } });
PrecinctGame.Hud.cs:86 / void BuildHud()var t = HzUI.Label("T", parent, text, size, c, a, display);
PrecinctGame.Hud.cs:175 / void BuildObjective()_objTitle = HzUI.Label("Title", card.transform, "", 38, Ink, TextAnchor.MiddleLeft);
PrecinctGame.Hud.cs:179 / void BuildObjective()_objSub = HzUI.Label("Sub", card.transform, "", 28, Muted, TextAnchor.UpperLeft, false); _objSub.fontStyle = FontStyle.Bold;
PrecinctGame.Hud.cs:182 / void BuildObjective()_skipBtn = HzUI.Button("Skip", _hud, "Skip guide", NavyA, White, () => { DebugCommand("skiptut"); HzAudio.Play(Sfx.Select, 0.5f); }, 32, 20);
PrecinctGame.Hud.cs:199 / void RefreshObjective()_objStep.text = tut ? "STEP " + (_tutStep + 1) + " / " + TutDone : "TO DO";
PrecinctGame.Hud.cs:362 / void BuildBoosters()var btn = HzUI.Button("Boost" + b, bar, null, HzUI.Hex(BoostColor[b]), White, () => UseBooster(bi), 30, 34);
PrecinctGame.Hud.cs:391 / void RefreshBoosters()ui.Badge.text = n > 0 ? n.ToString() : "+";
PrecinctGame.Hud.cs:413 / void RefreshBoosters()t.a = HzUI.Label("A", img.transform, "", (int)(h * 0.3f), White, TextAnchor.MiddleLeft); t.a.rectTransform.Place(new Vector2(0, 1), new Vector2(w - x - 12, h * 0.5f), new Vector2(x, -h * 0.3f), new Vector2(0, 0.5f));
PrecinctGame.Hud.cs:414 / void RefreshBoosters()t.b = HzUI.Label("B", img.transform, "", (int)(h * 0.3f), Yellow, TextAnchor.MiddleLeft); t.b.rectTransform.Place(new Vector2(0, 1), new Vector2(w - x - 12, h * 0.5f), new Vector2(x, -h * 0.7f), new Vector2(0, 0.5f));
PrecinctGame.Hud.cs:416 / void RefreshBoosters()else { t.a = HzUI.Label("A", img.transform, "", (int)(h * 0.55f), White, icon != null ? TextAnchor.MiddleLeft : TextAnchor.MiddleCenter); t.a.rectTransform.Place(new Vector2(0, 0.5f), new Vector2(w - x - 8, h), new Vector2(x, 0), new Vector2(0, 0.5f)); }
PrecinctGame.Hud.cs:482 / void UpdateTags(float dt)if (texts) { kv.Value.a.text = u.Name; kv.Value.b.text = "£" + Mathf.CeilToInt(u.Cost - paid); }
PrecinctGame.Hud.cs:489 / void UpdateTags(float dt)if (texts && amt >= 1) kv.Value.a.text = "£" + Mathf.RoundToInt(amt);
PrecinctGame.Hud.cs:499 / void UpdateTags(float dt)if (texts && _custodyTag.rt.gameObject.activeSelf) { int w = 0; foreach (var d in S.detainees) if (d.state == "waiting" || d.state == "booking") w++; _custodyTag.a.text = w.ToString(); }
PrecinctGame.Hud.cs:536 / void BuildFeed()n.t = HzUI.Label("T", bg.transform, "", 36, White); n.t.rectTransform.Stretch(6);
PrecinctGame.Hud.cs:540 / void BuildFeed()n.t = HzUI.Label("Float", parent, "", 52, White); n.rt = n.t.rectTransform; n.rt.sizeDelta = new Vector2(400, 80);
PrecinctGame.Hud.cs:698 / void RefreshHud(bool full)_moneyText.text = "£" + Mathf.FloorToInt(S.money);
PrecinctGame.Hud.cs:701 / void RefreshHud(bool full)_carsText.text = free + "/" + S.vehicles.Count;
PrecinctGame.Hud.cs:704 / void RefreshHud(bool full)_clockText.text = "Shift " + _shiftNo + " · " + (mins / 60).ToString("00") + ":" + (mins % 60).ToString("00");
PrecinctGame.Hud.cs:711 / void RefreshHud(bool full)_repText.text = S.rank + 1 < PtData.Ranks.Length ? S.rep + "/" + next : S.rep.ToString();
PrecinctGame.Hud.cs:715 / void RefreshHud(bool full)_goalHeader.text = "SHIFT " + _shiftNo + " · " + L.name;
PrecinctGame.Hud.cs:727 / void RefreshHud(bool full)if (g.k == "build") row.label.text = GoalText(g);
PrecinctGame.Hud.cs:728 / void RefreshHud(bool full)row.prog.text = g.k == "build" ? "" : g.k == "earned" ? "£" + Mathf.Min(have, need) + "/" + need : Mathf.Min(have, need) + "/" + need;
PrecinctGame.Hud.cs:755 / void CallBanner(Incident inc)_bannerText = HzUI.Label("T", bg.transform, "", 36, White, TextAnchor.MiddleLeft); _bannerText.rectTransform.Place(new Vector2(0, 0.5f), new Vector2((IsPortrait ? 1000 : 860) - 120, 90), new Vector2(110, 0), new Vector2(0, 0.5f));
PrecinctGame.Hud.cs:761 / void CallBanner(Incident inc)_bannerText.text = (inc.hot ? "URGENT! " : "Emergency: ") + def.Name + " · " + PtData.Districts[inc.district].Name + "\n" + (PtSim.Control(S) ? "Tap here or open DISPATCH" : "Head to the radio console");
PrecinctGame.Hud.cs:824 / void BuildDispatchPanel()_autoBtn = HzUI.Button("Auto", head.transform, "AUTO: OFF", HzUI.Hex("#3A4B7A"), White, () =>
PrecinctGame.Hud.cs:864 / void BuildDispatchPanel()_callsEmpty = HzUI.Label("Empty", calls.transform, "Nothing on the board - all calm in Bayport", 32, Muted); _callsEmpty.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(colW - 40, 60), new Vector2(0, -110));
PrecinctGame.Hud.cs:869 / void BuildDispatchPanel()var b = HzUI.Button("Call" + i, calls.transform, null, Paper, Ink, () => { if (idx < _callIds.Count) { _selCall = _callIds[idx]; _selUnit = -1; HzAudio.Play(Sfx.Select, 0.5f); RefreshDispatchLists(); } }, 28, 20);
PrecinctGame.Hud.cs:888 / void BuildDispatchPanel()var b = HzUI.Button("Unit" + i, units.transform, null, Paper, Ink, () =>
PrecinctGame.Hud.cs:912 / void BuildDispatchPanel()_sendBtn = HzUI.Button("Send", card.transform, null, Yellow, Ink, SendSelected, 44, 30);
PrecinctGame.Hud.cs:924 / void SendSelected()if (!PtSim.Control(S) && S.at != "dispatch") { HzAudio.Play(Sfx.Wrong, 0.5f); Toast("You must be at the radio console for that", Red, 1.4f, 0.3f); return; }
PrecinctGame.Hud.cs:930 / void SendSelected()Toast(v == null ? "No car can handle this one yet" : why, Red, 1.3f, 0.3f);
PrecinctGame.Hud.cs:946 / void RefreshDispatchLists()_dHeaderSub.text = (control ? "Elm Street Radio Room" : "Radio console") + " · " + ready + "/" + S.vehicles.Count + " free";
PrecinctGame.Hud.cs:949 / void RefreshDispatchLists()if (canAuto) { _autoBtn.SetText(S.autoDispatch ? "AUTO: ON" : "AUTO: OFF"); _autoBtn.GetComponent<Image>().color = S.autoDispatch ? Green : HzUI.Hex("#3A4B7A"); }
PrecinctGame.Hud.cs:971 / void RefreshDispatchLists()r.sub.text = PtData.Districts[inc.district].Name + " · " + (open ? need : inc.status == "onscene" ? "crew working" : "car driving there");
PrecinctGame.Hud.cs:972 / void RefreshDispatchLists()r.timer.text = open ? Mathf.Max(0, Mathf.CeilToInt(inc.deadline - S.t)) + "s" : "";
PrecinctGame.Hud.cs:994 / void RefreshDispatchLists()r.title.text = v.callsign + " " + vd.Name;
PrecinctGame.Hud.cs:996 / void RefreshDispatchLists()r.sub.text = vd.Seats + " seats · holds " + vd.Cage + (vd.Caps.Length > 0 ? " · " + (vd.Caps[0] == "cordon" ? "tape" : "road kit") : "");
PrecinctGame.Hud.cs:1017 / void RefreshDispatchLists()if (selInc == null) _sendText.text = "Choose a case";
PrecinctGame.Hud.cs:1018 / void RefreshDispatchLists()else if (!atPc) _sendText.text = "Walk to the radio console";
PrecinctGame.Hud.cs:1019 / void RefreshDispatchLists()else if (unit == null) _sendText.text = "No suitable car free";
PrecinctGame.Hud.cs:1020 / void RefreshDispatchLists()else _sendText.text = "SEND " + unit.callsign.ToUpperInvariant() + " >";
PrecinctGame.Hud.cs:1125 / void BuildManageContent()var row = HzUI.Button("U", right, null, White, Ink, () => { _focusPad = id; CloseManage(); RefreshObjective(); HzAudio.Play(Sfx.Select, 0.5f); }, 28, 20);
PrecinctGame.Hud.cs:1137 / void BuildManageContent()var t = HzUI.Label("None", right, "No upgrades on offer yet.\nLater shifts bring more.", 30, Muted, TextAnchor.MiddleCenter, false);
PrecinctGame.Hud.cs:1178 / void DropCards()var t = HzUI.Label("Title", ribbon.transform, title, 68, White); t.rectTransform.Stretch(6); t.AddOutline(new Color(0, 0, 0, 0.25f), 3);
PrecinctGame.Hud.cs:1185 / void DropCards()var t = HzUI.Label("Text", c.card, text, size, col, TextAnchor.MiddleCenter, display);
PrecinctGame.Hud.cs:1247 / void WelcomePopup(Action start, Action skip)CardText(c, "The Elm Street Precinct in Bayport is yours to run. Help people in the lobby, send cars out to emergencies, process arrests and expand the building.", 32, Muted, 170);
PrecinctGame.Hud.cs:1249 / void WelcomePopup(Action start, Action skip)CardButton(c, "Show me how", Yellow, Ink, start);
PrecinctGame.Hud.cs:1250 / void WelcomePopup(Action start, Action skip)var sk = CardButton(c, "Skip the guide", HzUI.Hex("#E9E4D8"), Muted, skip, 80, 34);
PrecinctGame.Hud.cs:1264 / void ShiftCard(Action done)CardButton(c, "Clock in", Orange, White, done);
PrecinctGame.Hud.cs:1271 / void UnlockPopup(int b, Action done)var c = NewCard("Helper unlocked!", HzUI.Hex(BoostColor[b]));
PrecinctGame.Hud.cs:1277 / void UnlockPopup(int b, Action done)CardButton(c, "Got it!", Green, White, done);
PrecinctGame.Hud.cs:1304 / void HintPopup(string key, Action done)CardButton(c, "OK", Green, White, done);
PrecinctGame.Hud.cs:1332 / void WinPopup(int stars, int wages, int grant, int bonus, Action next)CardButton(c, "Next shift", Orange, White, next);
PrecinctGame.Hud.cs:1346 / void LosePopup(bool canRescue, Action rescue, Action retry)if (canRescue) CardButton(c, "Watch ad: +1 minute", Orange, White, rescue);
PrecinctGame.Hud.cs:1347 / void LosePopup(bool canRescue, Action rescue, Action retry)CardButton(c, "Try again", Blue, White, retry);
PrecinctGame.Hud.cs:1360 / void RankPopup(int r, int bonus)CardButton(c, "Great!", Green, White, null);
PrecinctGame.Hud.cs:1371 / void OpenSettings()sound = CardButton(c, HzAudio.Muted ? "Sound: OFF" : "Sound: ON", HzUI.Hex("#4C9EEB"), White, null, 104, 46);
PrecinctGame.Hud.cs:1373 / void OpenSettings()sound.onClick.AddListener(() => { HzAudio.Muted = !HzAudio.Muted; sound.SetText(HzAudio.Muted ? "Sound: OFF" : "Sound: ON"); _soundBtn.GetComponentInChildren<Text>().text = HzAudio.Muted ? HzIcons.SoundOff : HzIcons.SoundOn; HzAudio.Play(HzSfx.Click); });
PrecinctGame.Hud.cs:1374 / void OpenSettings()music = CardButton(c, HzAudio.MusicMuted ? "Music: OFF" : "Music: ON", HzUI.Hex("#4C9EEB"), White, null, 104, 46);
PrecinctGame.Hud.cs:1376 / void OpenSettings()music.onClick.AddListener(() => { HzAudio.MusicMuted = !HzAudio.MusicMuted; music.SetText(HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"); HzAudio.Play(HzSfx.Click); });
PrecinctGame.Hud.cs:1377 / void OpenSettings()CardButton(c, "How to play", Green, White, () => { HowToPlay(was); }, 104, 46);
PrecinctGame.Hud.cs:1378 / void OpenSettings()CardButton(c, "Restart shift", Orange, White, () => { _paused = false; StartShift(_shiftNo, true); }, 104, 46);
PrecinctGame.Hud.cs:1379 / void OpenSettings()CardButton(c, "Close", HzUI.Hex("#8A93A8"), White, null, 104, 46);
PrecinctGame.Hud.cs:1398 / void HowToPlay(bool wasPaused)CardButton(c, "Got it", Green, White, null);
PrecinctGame.Hud.cs:1407 / void StartGuide(int b)Toast("Try " + BoostName[b] + " now - this use costs nothing!", Yellow, 2.6f, 0.62f);
PtData.cs:73 / class/static declarationsnew DistrictDef { Name = "Old Town", X = 0.42f, Y = 0.52f, Mult = 1f, Places = new[] { "Elm Street", "Clock Square", "Mill Lane", "Bell Road" } },
PtData.cs:74 / class/static declarationsnew DistrictDef { Name = "Market Row", X = 0.66f, Y = 0.40f, Mult = 1.1f, Places = new[] { "Market Hall", "Spice Alley", "Fruit Lane", "Canal Walk" } },
PtData.cs:75 / class/static declarationsnew DistrictDef { Name = "Riverside", X = 0.24f, Y = 0.30f, Mult = 1.15f, Places = new[] { "Willow Quay", "Boathouse Row", "Ferry Steps" } },
PtData.cs:76 / class/static declarationsnew DistrictDef { Name = "Hillcrest", X = 0.26f, Y = 0.76f, Mult = 1.25f, Places = new[] { "Oak Terrace", "Summit Park", "Lantern Hill" } },
PtData.cs:77 / class/static declarationsnew DistrictDef { Name = "Dockside", X = 0.80f, Y = 0.70f, Mult = 1.35f, Places = new[] { "Pier 4", "Container Yard", "Harbour Gate" } },
PtData.cs:78 / class/static declarationsnew DistrictDef { Name = "Uptown", X = 0.62f, Y = 0.82f, Mult = 1.5f, Places = new[] { "Grand Avenue", "Crystal Plaza", "Union Tower" } },
PtData.cs:87 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "lost", Icon = "report", Short = "Lost item", Name = "Lost Belongings", Sev = 1, Walkin = 3, Call = 0, Desk = true, Fee = 10, Rep = 1,
PtData.cs:89 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "bike", Icon = "bike", Short = "Bike stolen", Name = "Stolen Bicycle", Sev = 1, Walkin = 3, Call = 2, OnScene = 7, Reward = 40, Rep = 3, Arrest = 0.35f, Urgency = 150, Fee = 6,
PtData.cs:91 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "shoplift", Icon = "shop", Short = "Shop theft", Name = "Theft From a Shop", Sev = 1, Walkin = 0, Call = 3, OnScene = 7, Reward = 45, Rep = 3, Arrest = 0.6f, Urgency = 120 });
PtData.cs:92 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "prowler", Icon = "eye", Short = "Lurker", Name = "Lurker Seen", Sev = 1, Walkin = 1, Call = 2, OnScene = 6, Reward = 35, Rep = 2, Arrest = 0.3f, Urgency = 140, Fee = 6,
PtData.cs:94 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "graffiti", Icon = "spray", Short = "Damage", Name = "Property Damage", Sev = 1, Walkin = 1, Call = 1, OnScene = 6, Reward = 30, Rep = 2, Arrest = 0.25f, Urgency = 160, Fee = 6,
PtData.cs:96 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "brawl", Icon = "groups", Short = "Scuffle", Name = "Street Scuffle", Sev = 2, Officers = 2, Walkin = 0, Call = 3, OnScene = 10, Reward = 85, Rep = 5, Arrest = 0.65f, Urgency = 110 });
PtData.cs:97 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "cartheft", Icon = "car", Short = "Stolen car", Name = "Stolen Vehicle", Sev = 2, Walkin = 2, Call = 2, OnScene = 9, Reward = 65, Rep = 4, Arrest = 0.4f, Urgency = 150, Fee = 8,
PtData.cs:99 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "burglary", Icon = "door", Short = "Burglary", Name = "Home Burglary", Sev = 2, Officers = 2, Walkin = 1, Call = 2, OnScene = 12, Reward = 100, Rep = 6, Arrest = 0.45f, Urgency = 170, Fee = 8,
PtData.cs:101 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "hazard", Icon = "cone", Short = "Road hazard", Name = "Road Hazard", Sev = 3, Officers = 2, Need = "cordon", Walkin = 0, Call = 2, OnScene = 12, Reward = 150, Rep = 8, Arrest = 0, Urgency = 130 });
PtData.cs:102 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }I(new IncDef { Id = "crash", Icon = "crash", Short = "Accident", Name = "Road Accident", Sev = 2, Need = "traffic", Walkin = 0, Call = 3, OnScene = 10, Reward = 110, Rep = 6, Arrest = 0.1f, Urgency = 120 });
PtData.cs:104 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Veh["cruiser"] = new VehDef { Id = "cruiser", Name = "Patrol Car", Seats = 2, Cage = 1, Speed = 46, Body = "#F4F5F7", Accent = "#18264A" };
PtData.cs:105 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Veh["van"] = new VehDef { Id = "van", Name = "Transport Van", Seats = 3, Cage = 3, Speed = 38, Caps = new[] { "cordon" }, Body = "#F4F5F7", Accent = "#2F7BFF", Length = 4.9f };
PtData.cs:106 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Veh["suv"] = new VehDef { Id = "suv", Name = "Response SUV", Seats = 3, Cage = 1, Speed = 54, Caps = new[] { "cordon" }, Body = "#18264A", Accent = "#FFD21F", Length = 4.5f };
PtData.cs:107 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Veh["traffic"] = new VehDef { Id = "traffic", Name = "Road Unit Car", Seats = 2, Cage = 1, Speed = 60, Caps = new[] { "traffic" }, Body = "#F4F5F7", Accent = "#FFD21F" };
PtData.cs:109 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Roles["officer"] = new RoleDef { Id = "officer", Name = "Patrol Cop", Salary = 30, Officer = true };
PtData.cs:110 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Roles["sergeant"] = new RoleDef { Id = "sergeant", Name = "Squad Sergeant", Salary = 45, Officer = true };
PtData.cs:111 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Roles["trafficop"] = new RoleDef { Id = "trafficop", Name = "Road Cop", Salary = 45, Officer = true };
PtData.cs:112 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Roles["clerk"] = new RoleDef { Id = "clerk", Name = "Lobby Clerk", Salary = 22 };
PtData.cs:113 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Roles["booking"] = new RoleDef { Id = "booking", Name = "Cell Keeper", Salary = 35 };
PtData.cs:114 / void I(IncDef d) { Inc[d.Id] = d; IncOrder.Add(d.Id); }Roles["dispatcher"] = new RoleDef { Id = "dispatcher", Name = "Radio Operator", Salary = 32 };
PtData.cs:117 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "waiting", Kind = "item", Icon = "chair", Cost = 40, Patience = 0.5f, Name = "Lobby Benches", Desc = "A place to sit, so people queue for longer" });
PtData.cs:118 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "clerk1", Kind = "staff", Icon = "person", Cost = 60, Needs = new[] { "waiting" }, Hire = "clerk", Name = "Lobby Clerk", Desc = "Handles the counter queue while you're away" });
PtData.cs:119 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "car2", Kind = "vehicle", Icon = "car", Cost = 160, Vehicle = "cruiser", Name = "Extra Patrol Car", Desc = "Run two calls side by side" });
PtData.cs:120 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "off2", Kind = "staff", Icon = "person", Cost = 120, Hire = "officer", Name = "New Patrol Cop", Desc = "One more cop, with a desk of their own" });
PtData.cs:121 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "coffee", Kind = "item", Icon = "coffee", Cost = 80, Speed = 0.05f, Name = "Espresso Bar", Desc = "All staff +5% work speed" });
PtData.cs:122 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "cell2", Kind = "item", Icon = "cell", Cost = 150, Cells = 1, Name = "Cell No. 2", Desc = "Hold two people at a time" });
PtData.cs:123 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "booking", Kind = "staff", Icon = "key", Cost = 220, Hire = "booking", Name = "Cell Keeper", Desc = "Processes arrivals at the booking desk" });
PtData.cs:124 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "desk2", Kind = "staff", Icon = "desk", Cost = 160, Needs = new[] { "clerk1" }, Hire = "clerk", Counters = 1, Name = "Counter No. 2", Desc = "Opens a second window with its own clerk" });
PtData.cs:125 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "control", Kind = "room", Icon = "radio", Cost = 300, Hire = "dispatcher", Control = true, Name = "Radio Room", Desc = "Send cars from any spot + AUTO mode" });
PtData.cs:126 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "off3", Kind = "staff", Icon = "person", Cost = 200, Needs = new[] { "off2" }, Hire = "officer", Name = "New Patrol Cop", Desc = "One more cop, with a desk of their own" });
PtData.cs:127 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "van", Kind = "vehicle", Icon = "car", Cost = 650, Vehicle = "van", Name = "Transport Van", Desc = "Seats 3, brings back 3, has barrier tape" });
PtData.cs:128 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "interview", Kind = "room", Icon = "room", Cost = 360, Interview = 30, Name = "Questioning Room", Desc = "Each person questioned earns +£30" });
PtData.cs:129 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "breakroom", Kind = "room", Icon = "coffee", Cost = 280, Board = 0.4f, Name = "Staff Lounge", Desc = "Crews reach their car 40% sooner" });
PtData.cs:130 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "cell3", Kind = "item", Icon = "cell", Cost = 280, Needs = new[] { "cell2" }, Cells = 1, Name = "Cell No. 3", Desc = "Hold three people at a time" });
PtData.cs:131 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "sergeant", Kind = "staff", Icon = "star", Cost = 320, Hire = "sergeant", Scene = 0.1f, Name = "Squad Sergeant", Desc = "+10% speed for crews at a call" });
PtData.cs:132 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "off4", Kind = "staff", Icon = "person", Cost = 260, Needs = new[] { "off3" }, Hire = "officer", Name = "New Patrol Cop", Desc = "One more cop, with a desk of their own" });
PtData.cs:133 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "suv", Kind = "vehicle", Icon = "car", Cost = 900, Vehicle = "suv", Name = "Response SUV", Desc = "Quick, seats 3, has barrier tape" });
PtData.cs:134 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "scanner", Kind = "item", Icon = "finger", Cost = 400, Book = 0.5f, Name = "Print Scanner", Desc = "Booking goes 50% quicker" });
PtData.cs:135 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "traffic", Kind = "vehicle", Icon = "car", Cost = 1400, Vehicle = "traffic", Hire = "trafficop", Name = "Road Unit Car", Desc = "Handles accidents, comes with a Road Cop" });
PtData.cs:136 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "cctv", Kind = "room", Icon = "camera", Cost = 1200, Urgency = 0.25f, ArrestBonus = 0.1f, Name = "Camera Room", Desc = "More time per call, +10% arrest odds" });
PtData.cs:137 / void U(UnlockDef u) { Unlocks.Add(u); UnlockById[u.Id] = u; }U(new UnlockDef { Id = "off5", Kind = "staff", Icon = "person", Cost = 320, Needs = new[] { "off4" }, Hire = "officer", Name = "New Patrol Cop", Desc = "One more cop, with a desk of their own" });
PtIcons.cs:42 / class/static declarationspublic const string Help = "\ue887";
PtMesh.cs:26 / class/static declarationsif (tex) { m.SetTexture("_BaseMap", tex); m.mainTexture = tex; }
PtMesh.cs:38 / class/static declarationsif (tex) { m.SetTexture("_BaseMap", tex); m.mainTexture = tex; }
CHAPTER 11

Artwork, fonts, audio and licences

Replace game images under Resources/precinct through Unity while retaining resource keys, .meta GUIDs, Sprite/UI import settings, alpha, pivots and slicing. Procedural graphics in the art/view sources may need separate colour changes. Replacing one PNG does not change every fallback. Keep third-party font and other licence notices with the corresponding shipped assets.

Effects are under Resources/precinct/Sfx. Preserve each actual load key and importer settings when replacing sounds. Supplied music: Resources/precinct/Music/precinct_loop.ogg. Preserve that load key and verify loop/compression and the independent Music toggle. Kit UI uses supplied fonts; preserve actual licence notices and verify new glyphs.

CHAPTER 12

Local saves, reset and migration

HzSave wraps PlayerPrefs and flushes local state on focus loss/quit. WebGL persistence uses browser storage tied to the hosting origin. Clearing site data or changing origin starts a new local save; this is not cloud synchronization. Inspect HzSave/PlayerPrefs calls in the actual game source before altering progression, stars, helper charges or tutorial flags.

Verify fresh launch, a completed arena, helper use, sound options, focus loss and restart. Use a dedicated test profile for resets. Keep technical save keys stable during colour/text reskins. If changing schema or keys, implement and test a migration rather than silently discarding existing users’ progress.

CHAPTER 13

Advertising integration and configuration

Asset: Assets/Szekipapa77Ads/Resources/AdsSettings.asset. Inspect backend, useGoogleTestIds and missingSdkFallback in the publisher-owned Ads configuration. Buyer projects include adapter/integration code and exclude external provider SDK binaries. WebGL and a missing-provider fallback simulate ads; these are not live commercial impressions.

For real Android ads install the supported provider SDK from its official source into your working project, enter your own app/placement IDs and use test ads first. Verify banner/interstitial/rewarded callbacks on supported hardware. For production use your own IDs and disable simulated missing-SDK fallback. Build tooling rejects unsafe production fallback settings. No IAP, remote backend or HLK is included in this publisher edition.

CHAPTER 14

Android build and release

Install Unity 6000.0.62f1 Android modules through Hub. Select Android, run Setup and review application ID com.szekipapa77.precinct, version, scene orientation and signing. The build command writes Builds/Android/precinct.apk. Confirm BuildResult.Succeeded and the actual output file; intermediate report totals are not the final APK size.

Use your own keystore/signing and distribution settings. A test-signed demo is not a signed store release. A provider-free build simulates ads; a provider test-demo does not prove production ad-account configuration. Test real hardware touch, safe areas, focus/audio, save/relaunch and reward callbacks. Keep passwords, keystores and private service credentials out of buyer packages.

CHAPTER 15

WebGL build and hosting

Install matching WebGL support. Run Setup and Build WebGL; output is Builds/WebGL/precinct/. Serve index.html with all loader/framework/data/WASM/StreamingAssets files over HTTP(S), not file://. Match compression, Content-Encoding and MIME types to the host. Outer page sizing and actual scene orientation are different settings.

The publisher’s playable demo is hosted on HyperCodeStore. Upload the actual runtime files rather than merely changing a URL. Test a fresh anonymous load, real pointer controls, audio after interaction, saved progress/reload and phone/desktop sizing. Rebuild and rehost when code/assets change. A successful HTTP page alone is not gameplay verification.

CHAPTER 16

Troubleshooting

Compile errors: restore matching packages and the full private Kit/Ads layer; only one game Kit belongs in a project. Pink/invisible rendering: run Setup and inspect Graphics and every Quality URP assignment. No input: classic input handling must be enabled; check canvas focus and blocking modals. Missing resources: restore exact paths, .meta GUIDs and importer settings.

Edits do not appear: stop Play, Save in the level editor, reload the canonical bank and check current saved level. Text reverts: update construction and refresh assignments from the exact table. No live ads: provider binaries are deliberately excluded; inspect your installed provider and fallback mode. Scene reload exception: retain owner-lifetime and generation guards on delayed callbacks. WebGL fails: inspect browser Console, compression headers and missing payloads.

CHAPTER 17

Support and final release checklist

Publisher: Szekipapa77. Support: szekipapa77@gmail.com. Include game title, exact Unity version, platform, first Console error and reproduction steps. Never send passwords/tokens.

  1. Clean-import the standalone project and native package.
  2. Play both scenes and replace a scene near startup.
  3. Review tutorial, normal completion/retry and every helper activation plus effect.
  4. Validate editor changes and test reskin text/colours in both layouts.
  5. Rebuild affected Android/WebGL outputs.
  6. Verify complete public APK bytes, actual browser demo, documentation and video links.
  7. Keep licences and exclude all internal prompts, planning/capture/build/QA tooling from buyers.