Unity 6000.0.62f1 · Complete offline documentation

Office Rampage
Developer Guide

Install. Edit. Reskin. Build your release.

szekipapa77@gmail.com
Office Rampage cover
CHAPTER 01

Start here: Office Rampage

Office Rampage is a standalone editable Unity game template. Drag across the office room to swing the cartoon mallet. Break the required share of room value before the swing budget runs out. Props break and move with physics; each tool has its own targeting action.

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 > Office Rampage > 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/OfficeSmash/Scenes/OfficeSmash_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/OfficeSmash. 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/officesmash contains level JSON, art, music and sound; Settings owns URP assets; Scenes contains both entry scenes.

Main flow: OfficeSmashGame.cs. UI and popup consumers: OfficeSmashGame.UI.cs. Model/generator/loading: OsData.cs, OsGen.cs, OsLevels.cs, OsLogic.cs. Authoring: Editor/OfficeSmashLevelEditor.cs. Shared ad settings live outside the game at Assets/Szekipapa77Ads/Resources/AdsSettings.asset.

CHAPTER 04

Gameplay, controls and progression

Drag across the office room to swing the cartoon mallet. Break the required share of room value before the swing budget runs out. Props break and move with physics; each tool has its own targeting action.

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/OfficeSmashGame.cs; help and effect descriptions: Scripts/OfficeSmashGame.cs.

HelperUnlockFree chargesAction and effect
Sledgehammer33Your next swing hits 3 times as hard with double reach. Safes crack in one go!
Bowling Ball62Tap a row: a bowling ball rolls straight through it. No swing used.
Paper Bomb102Tap a spot: a 3x3 paper blast. No swing used.
Coffee Break152Grab a coffee: +2 swings right now.

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 > Office Rampage > Level Editor. Exact implementation: Editor/OfficeSmashLevelEditor.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/officesmash/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
OfficeSmashLevelEditor.cs:50[MenuItem("Szekipapa77/Office Rampage/Level Editor")]
OfficeSmashLevelEditor.cs:53[MenuItem("Szekipapa77/Office Rampage/Validate All Levels")]
OfficeSmashLevelEditor.cs:129if (GUILayout.Button(_dirty ? "Save *" : "Save", EditorStyles.toolbarButton, GUILayout.Width(70))) Save();
OfficeSmashLevelEditor.cs:130if (GUILayout.Button("Reload", EditorStyles.toolbarButton, GUILayout.Width(60)) && (!_dirty || EditorUtility.DisplayDialog("Reload", "Discard unsaved changes?", "Discard", "Cancel"))) Load();
OfficeSmashLevelEditor.cs:133if (GUILayout.Button("Validate", EditorStyles.toolbarButton, GUILayout.Width(70)) && Cur != null) ValidateOne(_sel);
OfficeSmashLevelEditor.cs:134if (GUILayout.Button("Validate All", EditorStyles.toolbarButton, GUILayout.Width(85))) ValidateAll();
OfficeSmashLevelEditor.cs:137if (GUILayout.Button(new GUIContent("Play this level", "Optional quick test: saves, opens the WebGL scene at this level and enters Play mode. Editing never needs it."), EditorStyles.toolbarButton, GUILayout.Width(100)) && Cur != null) Play(_sel + 1);
OfficeSmashLevelEditor.cs:163if (GUILayout.Button("Add"))
OfficeSmashLevelEditor.cs:168if (GUILayout.Button("Dup") && Cur != null) { Commit(); var c = Cur.Clone(); c.name += " copy"; Insert(_sel + 1, c); }
OfficeSmashLevelEditor.cs:169if (GUILayout.Button("Del") && Cur != null && EditorUtility.DisplayDialog("Delete", $"Delete level {_sel + 1} '{Cur.name}'?", "Delete", "Cancel"))
OfficeSmashLevelEditor.cs:173if (GUILayout.Button("Up") && _sel > 0) Move(-1);
OfficeSmashLevelEditor.cs:174if (GUILayout.Button("Down") && _sel < _file.levels.Length - 1) Move(1);
OfficeSmashLevelEditor.cs:198EditorGUILayout.LabelField($"Level {_sel + 1}", EditorStyles.boldLabel);
OfficeSmashLevelEditor.cs:200l.name = EditorGUILayout.TextField("Name", l.name);
OfficeSmashLevelEditor.cs:202ti = EditorGUILayout.Popup("Theme", ti, Themes.Names, GUILayout.Width(300));
OfficeSmashLevelEditor.cs:205l.hint = EditorGUILayout.TextField("First-time hint", l.hint);
OfficeSmashLevelEditor.cs:207l.difficulty = EditorGUILayout.Slider("Design difficulty", l.difficulty, 0, 1);
OfficeSmashLevelEditor.cs:208l.breather = EditorGUILayout.ToggleLeft("Breather", l.breather, GUILayout.Width(80));
OfficeSmashLevelEditor.cs:209l.boss = EditorGUILayout.ToggleLeft("Boss Office", l.boss, GUILayout.Width(90));
OfficeSmashLevelEditor.cs:210l.tut = EditorGUILayout.ToggleLeft("Tutorial", l.tut == 1, GUILayout.Width(80)) ? 1 : 0;
OfficeSmashLevelEditor.cs:213l.swings = EditorGUILayout.IntSlider("Swings", l.swings, 1, 12);
OfficeSmashLevelEditor.cs:214l.target = EditorGUILayout.IntSlider("Target %", l.target, 5, 100);
OfficeSmashLevelEditor.cs:215if (GUILayout.Button(new GUIContent("Auto swings + target", "Calibrate from the bot's progress curve and the design difficulty"), GUILayout.Width(150)))
OfficeSmashLevelEditor.cs:221int w = EditorGUILayout.IntSlider("Width", _grid.W, 4, 11);
OfficeSmashLevelEditor.cs:222int h = EditorGUILayout.IntSlider("Depth", _grid.H, 4, 9);
OfficeSmashLevelEditor.cs:233EditorGUILayout.HelpBox($"Bot: {v}{(v.Solvable ? "" : "\nNOT solvable by the bot - add swings, lower the target or rearrange props.")}", v.Solvable ? MessageType.Info : MessageType.Warning);
OfficeSmashLevelEditor.cs:238if (lockedUse > 0) EditorGUILayout.HelpBox("This room uses a prop before its introduction level (see brush tooltips). Players won't get its first-time popup in order.", MessageType.Warning);
OfficeSmashLevelEditor.cs:255EditorGUILayout.LabelField("Bot mess % after each swing (blue = within the swing budget, red line = target)", EditorStyles.miniLabel);
OfficeSmashLevelEditor.cs:330_showGen = EditorGUILayout.Foldout(_showGen, "Auto Generate (seeded, bot-calibrated, same generator as the runtime)", true);
OfficeSmashLevelEditor.cs:333_genCount = EditorGUILayout.IntField("Count", _genCount); _genStart = EditorGUILayout.IntField("Start at level #", _genStart);
OfficeSmashLevelEditor.cs:334_genSeed = EditorGUILayout.IntField("Seed", _genSeed);
OfficeSmashLevelEditor.cs:337_genFrom = EditorGUILayout.Slider("Start difficulty", _genFrom, 0, 1); _genTo = EditorGUILayout.Slider("End difficulty", _genTo, 0, 1);
OfficeSmashLevelEditor.cs:340_genBreather = EditorGUILayout.IntSlider("Breather every", _genBreather, 0, 8);
OfficeSmashLevelEditor.cs:341_genReplace = EditorGUILayout.ToggleLeft("Replace that range (else insert)", _genReplace);
OfficeSmashLevelEditor.cs:352if (GUILayout.Button($"Generate {_genCount} level(s)", GUILayout.Height(26))) Generate();
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
OfficeSmashLevelEditor.cs:47bool _genReplace, _showGen = true;
OfficeSmashLevelEditor.cs:341_genReplace = EditorGUILayout.ToggleLeft("Replace that range (else insert)", _genReplace);
OfficeSmashLevelEditor.cs:376if (_genReplace) { int rm = Mathf.Min(_genCount, list.Count - at); if (rm > 0) list.RemoveRange(at, rm); }
OfficeSmashLevelEditor.cs:377list.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/OfficeSmash/Resources/officesmash/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",
  "theme": "lobby",
  "hint": "Drag across the room to swing your mallet!",
  "difficulty": 0.05,
  "breather": false,
  "boss": false,
  "tut": 1,
  "swings": 4,
  "target": 60,
  "map": [
    "poooooop",
    "oooooooo",
    "occcccco",
    "oooooooo",
    "pnoooonp"
  ]
}

Root keys: version, levels. Inspect OsData.cs, OsGen.cs, OsLevels.cs, OsLogic.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/OfficeSmashGame.UI.cs. Find Ink, currently #2B2D42. 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
OfficeSmashGame.UI.cs:88 / void BuildHud()_swingText = HzUI.Label("N", _swingPanel, "", 64, Ink); _swingText.rectTransform.Place(new Vector2(0, 0.5f), new Vector2(110, 80), new Vector2(170, 10));
OfficeSmashGame.UI.cs:91 / void BuildHud()var swl2 = HzUI.Label("x", _swingPanel, "", 0, Ink); swl2.gameObject.SetActive(false);
OfficeSmashGame.UI.cs:109 / void BuildHud()Mark(_barBg, barW, _e.Target, Ink, true);
OfficeSmashGame.UI.cs:115 / void BuildHud()_pctText = HzUI.Label("Pct", _progPanel, "", 52, Ink);
OfficeSmashGame.UI.cs:166 / void BuildHud()_tipText = HzUI.Label("T", _tipPanel, "", portrait ? 40 : 42, Ink); _tipText.rectTransform.Stretch(18);
OfficeSmashGame.UI.cs:245 / void Mark(RectTransform bar, float w, int pct, Color c, bool target)v.Caption = HzUI.Label("Cap", v.Root, "", 30, Ink);
OfficeSmashGame.UI.cs:265 / void RefreshBoosters()v.Caption.color = un ? Ink : HzUI.Hex("#8A86A8");
OfficeSmashGame.UI.cs:276 / void UpdateHudValues(bool punch)_pctText.color = _e.TargetReached ? HzUI.Hex("#2BAE66") : Ink;
OfficeSmashGame.UI.cs:278 / void UpdateHudValues(bool punch)_swingText.color = _e.Swings <= 1 ? HzUI.Hex("#E63946") : Ink;
SourceExact current code
OfficeSmashGame.cs:30 / class/static declarationsstatic readonly string[] BoostColor = { "#5C677D", "#FF6F61", "#8C7BFF", "#2EC4B6" };
OfficeSmashGame.cs:141 / IEnumerator IntroFlow()OfficePopup(it.title, it.msg, HzUI.Hex("#FF4F8B"), Art(it.art), ("Got it!", Green, () => closed = true));
OfficeSmashGame.cs:306 / void PlayEvent(Ev ev)FloatText(CellWorld(ev.Cell) + Vector3.up * 1.0f, "+1 swing", HzUI.Hex("#2EC4B6"));
OfficeSmashGame.cs:311 / void PlayEvent(Ev ev)FloatText(CellWorld(ev.Cell) + Vector3.up * 1.1f, "-2 swings!", HzUI.Hex("#FF3B3B"));
OfficeSmashGame.cs:315 / void PlayEvent(Ev ev)Toast("The boss's trophy! -2 swings", HzUI.Hex("#FFD23F"), 1.4f, 0.75f);
OfficeSmashGame.cs:322 / void PlayEvent(Ev ev)FloatText(CellWorld(ev.Cell) + Vector3.up * 1.6f, "BONK!", HzUI.Hex("#FFD23F"));
OfficeSmashGame.cs:343 / void PlayEvent(Ev ev)Toast("Target reached! Keep smashing for stars", HzUI.Hex("#3DDC84"), 1.6f, 0.78f);
OfficeSmashGame.cs:381 / void AnimBreak(Ev ev, Vector3 dir)case Prop.Plant: SpawnSparks(at + Vector3.up * 0.5f, Mat("#3DDC84", 0.35f), 8, 1f, 7f, 1f); break;
OfficeSmashGame.cs:383 / void AnimBreak(Ev ev, Vector3 dir)case Prop.Mug: SpawnSparks(at + Vector3.up * 0.4f, Mat("#6B3E26", 0.8f), 8, 0.9f, 9f, 0.8f); break;
OfficeSmashGame.cs:388 / void AnimBreak(Ev ev, Vector3 dir)if (ev.Value > 0) FloatText(at + Vector3.up * 1.1f, "$" + ev.Value, _swingBreakCount >= 3 ? HzUI.Hex("#FF4F8B") : HzUI.Hex("#3DDC84"));
OfficeSmashGame.cs:395 / IEnumerator AnimBowl(Ev ev)var ball = MeshObj("Ball", _world, OsMeshes.Sphere, Mat("#FF6F61", 0.85f));
OfficeSmashGame.cs:461 / IEnumerator LoseFlow()OfficePopup("Out of swings!", $"{_e.Pct}% wrecked, target {_e.Target}%.\nGrab 2 more swings and finish the job?", HzUI.Hex("#FF4F8B"), Art("lose_badge"),
OfficeSmashGame.cs:465 / IEnumerator LoseFlow()OfficePopup("Out of swings!", $"{_e.Pct}% wrecked, target {_e.Target}%.", HzUI.Hex("#FF4F8B"), Art("lose_badge"),
OfficeSmashGame.cs:504 / void OnBooster(int b)("No thanks", HzUI.Hex("#A8A3C7"), null));
OfficeSmashGame.cs:529 / void OnBooster(int b)FloatTextUi("+2 swings", HzUI.Hex("#2EC4B6"));
OfficeSmashGame.UI.cs:12 / class/static declarationsstatic readonly Color Ink = HzUI.Hex("#2B2D42");
OfficeSmashGame.UI.cs:13 / class/static declarationsstatic readonly Color Pink = HzUI.Hex("#FF4F8B");
OfficeSmashGame.UI.cs:14 / class/static declarationsstatic readonly Color Green = HzUI.Hex("#3DDC84");
OfficeSmashGame.UI.cs:15 / class/static declarationsstatic readonly Color Orange = HzUI.Hex("#FF9F43");
OfficeSmashGame.UI.cs:16 / class/static declarationsstatic readonly Color Navy = HzUI.Hex("#3D5A80");
OfficeSmashGame.UI.cs:59 / void BuildHud()Color pillCol = _data.boss ? HzUI.Hex("#C0392B") : Navy;
OfficeSmashGame.UI.cs:71 / void BuildHud()_levelSub = HzUI.Label("Name", lp.transform, _data.name, 30, HzUI.Hex("#E8F0FF"), TextAnchor.MiddleCenter, false);
OfficeSmashGame.UI.cs:89 / void BuildHud()var swl = HzUI.Label("L", _swingPanel, "swings", 26, HzUI.Hex("#7A7F99"), TextAnchor.MiddleCenter, false); swl.fontStyle = FontStyle.Bold;
OfficeSmashGame.UI.cs:101 / void BuildHud()_barBg = HzUI.Panel("BarBg", _progPanel, HzUI.Hex("#E9E6F5"), 26).rectTransform;
OfficeSmashGame.UI.cs:110 / void BuildHud()Mark(_barBg, barW, _e.Star2Pct, HzUI.Hex("#FFC83D"), false);
OfficeSmashGame.UI.cs:111 / void BuildHud()Mark(_barBg, barW, 100, HzUI.Hex("#FFC83D"), false);
OfficeSmashGame.UI.cs:112 / void BuildHud()var goal = HzUI.Label("Goal", _progPanel, "Wreck " + _e.Target + "% of the room", 30, HzUI.Hex("#5A5F7A"), TextAnchor.MiddleLeft, false);
OfficeSmashGame.UI.cs:117 / void BuildHud()_cashText = HzUI.Label("Cash", _progPanel, "", 34, HzUI.Hex("#2BAE66"));
OfficeSmashGame.UI.cs:160 / void BuildHud()_tipPanel = HzUI.Panel("Tip", _hud, HzUI.Hex("#FFF4B8"), 30).rectTransform;
OfficeSmashGame.UI.cs:257 / void RefreshBoosters()v.Inner.color = un ? HzUI.Hex(BoostColor[b]) : HzUI.Hex("#C9C6DB");
OfficeSmashGame.UI.cs:265 / void RefreshBoosters()v.Caption.color = un ? Ink : HzUI.Hex("#8A86A8");
OfficeSmashGame.UI.cs:268 / void RefreshBoosters()v.Ring.color = sel || _guide == b ? HzUI.Hex("#FFD23F") : new Color(1, 1, 1, 0);
OfficeSmashGame.UI.cs:276 / void UpdateHudValues(bool punch)_pctText.color = _e.TargetReached ? HzUI.Hex("#2BAE66") : Ink;
OfficeSmashGame.UI.cs:278 / void UpdateHudValues(bool punch)_swingText.color = _e.Swings <= 1 ? HzUI.Hex("#E63946") : Ink;
OfficeSmashGame.UI.cs:341 / void UpdateHpPips(int i)root.GetChild(k).GetComponent<Image>().color = k - 1 < hp ? (hp == 1 ? HzUI.Hex("#FF6F61") : Color.white) : new Color(1, 1, 1, 0.18f);
OfficeSmashGame.UI.cs:404 / void ComboCallout(int n)var l = HzUI.Label("Combo", _hud, $"Combo x{n}\n{w}", 84, HzUI.Hex("#FFD23F"));
OfficeSmashGame.UI.cs:405 / void ComboCallout(int n)l.AddOutline(HzUI.Hex("#C2185B"), 6); l.AddShadow(new Color(0, 0, 0, 0.35f), 8);
OfficeSmashGame.UI.cs:424 / void LevelBanner()var n = HzUI.Label("N", bg.transform, sub, 40, HzUI.Hex("#FFE7F0")); n.rectTransform.Place(new Vector2(0.5f, 0), new Vector2(800, 100), new Vector2(0, 14), new Vector2(0.5f, 0));
OfficeSmashGame.UI.cs:560 / void CompleteGuide(int b)Toast("Nice! The " + BoostName[b] + " is yours", HzUI.Hex("#FFE3F0"), 1.3f, 0.78f);
OfficeSmashGame.UI.cs:653 / HzPopup OfficePopupEx(string title, string message, Color accent, Sprite art, int stars, params (string label, Color color, Action action)[] buttons)var card = HzUI.Panel("Card", dim.transform, HzUI.Hex("#FFF8E7"), 30);
OfficeSmashGame.UI.cs:656 / HzPopup OfficePopupEx(string title, string message, Color accent, Sprite art, int stars, params (string label, Color color, Action action)[] buttons)var inner = HzUI.Panel("Inner", card.transform, HzUI.Hex("#FFFDF6"), 22); inner.raycastTarget = false;
OfficeSmashGame.UI.cs:693 / HzPopup OfficePopupEx(string title, string message, Color accent, Sprite art, int stars, params (string label, Color color, Action action)[] buttons)var st = HzIcons.Icon(card.transform, HzIcons.Star, s == 1 ? 120 : 100, on ? HzUI.Hex("#FFC83D") : HzUI.Hex("#DAD5E8"));
OfficeSmashGame.UI.cs:694 / HzPopup OfficePopupEx(string title, string message, Color accent, Sprite art, int stars, params (string label, Color color, Action action)[] buttons)st.AddOutline(on ? HzUI.Hex("#B8860B") : HzUI.Hex("#B5AFC9"), 4);
OfficeSmashGame.UI.cs:704 / HzPopup OfficePopupEx(string title, string message, Color accent, Sprite art, int stars, params (string label, Color color, Action action)[] buttons)p.Message = HzUI.Label("Msg", card.transform, message, 42, HzUI.Hex("#4A4E69"), TextAnchor.MiddleCenter, false);
OfficeSmashGame.UI.cs:746 / void ShowSettingsPopup()(SoundLabel(), HzUI.Hex("#4C9EEB"), null),
OfficeSmashGame.UI.cs:747 / void ShowSettingsPopup()(MusicLabel(), HzUI.Hex("#8C7BFF"), null),
OfficeSmashGame.View.cs:53 / void SetupLook()_cam.backgroundColor = HzUI.Hex("#2B2D42");
OfficeSmashGame.View.cs:65 / void SetupLook()_sun.color = HzUI.Hex("#FFF1DE"); _sun.intensity = 1.2f;
OfficeSmashGame.View.cs:72 / void SetupLook()fill.transform.rotation = Quaternion.Euler(30, 150, 0); fill.color = HzUI.Hex("#BFD4FF"); fill.intensity = 0.35f;
OfficeSmashGame.View.cs:75 / void SetupLook()rim.transform.rotation = Quaternion.Euler(20, 180, 0); rim.color = HzUI.Hex("#FFD3E8"); rim.intensity = 0.3f;
OfficeSmashGame.View.cs:78 / void SetupLook()RenderSettings.ambientSkyColor = HzUI.Hex("#C9C2F0");
OfficeSmashGame.View.cs:79 / void SetupLook()RenderSettings.ambientEquatorColor = HzUI.Hex("#E8B9B0");
OfficeSmashGame.View.cs:80 / void SetupLook()RenderSettings.ambientGroundColor = HzUI.Hex("#5E5A86");
OfficeSmashGame.View.cs:104 / void MakeMaterials()_screenMat = Unlit(HzUI.Hex("#7FE9FF") * 1.25f);
OfficeSmashGame.View.cs:105 / void MakeMaterials()_paperMat = Unlit(HzUI.Hex("#FFFFFF"));
OfficeSmashGame.View.cs:106 / void MakeMaterials()_waterMat = Unlit(HzUI.Hex("#6CC8FF") * 1.4f);
OfficeSmashGame.View.cs:108 / void MakeMaterials()string[] conf = { "#FF4F8B", "#FFD23F", "#2EC4B6", "#FF6F61", "#8C7BFF", "#3DDC84" };
OfficeSmashGame.View.cs:142 / void BuildBackground()var img = HzUI.Img("Grad", go.transform, HzUI.Gradient(HzUI.Hex("#3D3B6E"), HzUI.Hex("#F29E8E")), Color.white);
OfficeSmashGame.View.cs:199 / void BuildWorld()var windowMat = Unlit(HzUI.Hex("#BFE9FF") * 1.1f);
OfficeSmashGame.View.cs:200 / void BuildWorld()var frameMat = Mat("#FFFFFF", 0.5f);
OfficeSmashGame.View.cs:201 / void BuildWorld()var slabMat = Mat("#4A4870", 0.2f);
OfficeSmashGame.View.cs:313 / void AddWallCollider(Vector3 pos, Vector3 size)static readonly string[] ChairCols = { "#FF6F61", "#2EC4B6", "#3D5A80", "#FFD23F" };
OfficeSmashGame.View.cs:314 / void AddWallCollider(Vector3 pos, Vector3 size)static readonly string[] BookCols = { "#FF6F61", "#2EC4B6", "#FFD23F", "#8C7BFF", "#3DDC84", "#FF4F8B" };
OfficeSmashGame.View.cs:326 / void AddWallCollider(Vector3 pos, Vector3 size)var dark = Mat("#2B2D42", 0.5f);
OfficeSmashGame.View.cs:328 / void AddWallCollider(Vector3 pos, Vector3 size)Cyl(t, 0.07f, 0.3f, Mat("#B8BCC8", 0.8f), new Vector3(0, 0.2f, 0));
OfficeSmashGame.View.cs:335 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#3DDC84", 0.35f);
OfficeSmashGame.View.cs:336 / void AddWallCollider(Vector3 pos, Vector3 size)var pot = Mat("#E07A5F", 0.4f);
OfficeSmashGame.View.cs:340 / void AddWallCollider(Vector3 pos, Vector3 size)Ball(t, 0.32f, Mat("#2BB673", 0.35f), new Vector3(0.13f, 0.72f, 0.04f));
OfficeSmashGame.View.cs:341 / void AddWallCollider(Vector3 pos, Vector3 size)Ball(t, 0.28f, Mat("#5EE6A0", 0.35f), new Vector3(-0.12f, 0.78f, -0.05f));
OfficeSmashGame.View.cs:346 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#E0A26A", 0.45f);
OfficeSmashGame.View.cs:347 / void AddWallCollider(Vector3 pos, Vector3 size)var leg = Mat("#B97C47", 0.4f);
OfficeSmashGame.View.cs:350 / void AddWallCollider(Vector3 pos, Vector3 size)var navy = Mat("#3D5A80", 0.6f);
OfficeSmashGame.View.cs:354 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.32f, 0.03f, 0.11f, Mat("#F4F1EA", 0.5f), new Vector3(0, 0.6f, -0.12f), 0.01f);
OfficeSmashGame.View.cs:360 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#8D99AE", 0.6f);
OfficeSmashGame.View.cs:368 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#E8ECF2", 0.55f);
OfficeSmashGame.View.cs:370 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.78f, 0.08f, 0.62f, Mat("#5C677D", 0.5f), new Vector3(0, 0.66f, 0), 0.03f);
OfficeSmashGame.View.cs:371 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.38f, 0.04f, 0.3f, Mat("#C9D1DD", 0.5f), new Vector3(0.48f, 0.42f, 0), 0.02f);
OfficeSmashGame.View.cs:373 / void AddWallCollider(Vector3 pos, Vector3 size)Ball(t, 0.06f, Unlit(HzUI.Hex("#3DDC84") * 1.6f), new Vector3(-0.26f, 0.58f, -0.3f));
OfficeSmashGame.View.cs:378 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#7D8FB3", 0.5f);
OfficeSmashGame.View.cs:380 / void AddWallCollider(Vector3 pos, Vector3 size)var dr = Mat("#A9B8D6", 0.55f); var hd = Mat("#2B2D42", 0.7f);
OfficeSmashGame.View.cs:390 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#C68A54", 0.4f);
OfficeSmashGame.View.cs:408 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#C9D1DD", 0.7f);
OfficeSmashGame.View.cs:417 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#F4F6FA", 0.55f);
OfficeSmashGame.View.cs:419 / void AddWallCollider(Vector3 pos, Vector3 size)Ball(t, 0.06f, Mat("#FF6F61", 0.7f), new Vector3(-0.08f, 0.5f, -0.22f));
OfficeSmashGame.View.cs:420 / void AddWallCollider(Vector3 pos, Vector3 size)Ball(t, 0.06f, Mat("#4C9EEB", 0.7f), new Vector3(0.08f, 0.5f, -0.22f));
OfficeSmashGame.View.cs:427 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#3D4558", 0.82f);
OfficeSmashGame.View.cs:429 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.6f, 0.6f, 0.03f, Mat("#4E586E", 0.85f), new Vector3(0, 0.38f, -0.33f), 0.03f);
OfficeSmashGame.View.cs:430 / void AddWallCollider(Vector3 pos, Vector3 size)Part(t, OsMeshes.Cylinder, Mat("#FFD23F", 0.9f), new Vector3(0.05f, 0.4f, -0.36f), new Vector3(0.22f, 0.02f, 0.22f), new Vector3(90, 0, 0));
OfficeSmashGame.View.cs:431 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.05f, 0.22f, 0.05f, Mat("#C9D1DD", 0.9f), new Vector3(-0.2f, 0.4f, -0.36f), 0.02f);
OfficeSmashGame.View.cs:436 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#FF6F61", 0.7f);
OfficeSmashGame.View.cs:437 / void AddWallCollider(Vector3 pos, Vector3 size)string[] mc = { "#FF6F61", "#2EC4B6", "#FFD23F" };
OfficeSmashGame.View.cs:444 / void AddWallCollider(Vector3 pos, Vector3 size)Cyl(t, 0.17f, 0.01f, Mat("#6B3E26", 0.8f), new Vector3(0, 0.57f, 0));
OfficeSmashGame.View.cs:449 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#D9D4CC", 0.3f);
OfficeSmashGame.View.cs:450 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.72f, 0.12f, 0.72f, Mat("#BFB8AD", 0.3f), new Vector3(0, 0.06f, 0), 0.03f);
OfficeSmashGame.View.cs:452 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.72f, 0.12f, 0.72f, Mat("#BFB8AD", 0.3f), new Vector3(0, 1.62f, 0), 0.03f);
OfficeSmashGame.View.cs:457 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#FFC83D", 0.92f);
OfficeSmashGame.View.cs:458 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.5f, 0.42f, 0.5f, Mat("#2E4057", 0.5f), new Vector3(0, 0.21f, 0), 0.04f);
OfficeSmashGame.View.cs:468 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#FF6F61", 0.6f);
OfficeSmashGame.View.cs:473 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.14f, 0.5f, 0.03f, Mat("#2B2D42", 0.6f), new Vector3(0.28f, 0.9f, -0.31f), 0.02f);
OfficeSmashGame.View.cs:474 / void AddWallCollider(Vector3 pos, Vector3 size)Box(t, 0.5f, 0.12f, 0.03f, Mat("#2B2D42", 0.6f), new Vector3(-0.08f, 0.22f, -0.31f), 0.02f);
OfficeSmashGame.View.cs:479 / void AddWallCollider(Vector3 pos, Vector3 size)main = Mat("#FFD23F", 0.55f);
OfficeSmashGame.View.cs:480 / void AddWallCollider(Vector3 pos, Vector3 size)var dark = Mat("#2B2D42", 0.6f); var teal = Mat("#2EC4B6", 0.6f);
OfficeSmashGame.View.cs:487 / void AddWallCollider(Vector3 pos, Vector3 size)Part(t, OsMeshes.Cylinder, Mat("#C9D1DD", 0.9f), new Vector3(-0.3f, 0.55f, 0), new Vector3(0.07f, 0.16f, 0.07f), new Vector3(0, 0, 60));
OfficeSmashGame.View.cs:488 / void AddWallCollider(Vector3 pos, Vector3 size)Part(t, OsMeshes.Cylinder, Mat("#C9D1DD", 0.9f), new Vector3(0.3f, 0.55f, 0), new Vector3(0.07f, 0.16f, 0.07f), new Vector3(0, 0, -60));
OfficeSmashGame.View.cs:489 / void AddWallCollider(Vector3 pos, Vector3 size)Ball(t, 0.16f, Mat("#FF6F61", 0.6f), new Vector3(-0.42f, 0.66f, 0));
OfficeSmashGame.View.cs:490 / void AddWallCollider(Vector3 pos, Vector3 size)Ball(t, 0.16f, Mat("#FF6F61", 0.6f), new Vector3(0.42f, 0.66f, 0));
OfficeSmashGame.View.cs:493 / void AddWallCollider(Vector3 pos, Vector3 size)default: main = Mat("#FFFFFF"); break;
OfficeSmashGame.View.cs:506 / void BuildTool()Part(pivot, OsMeshes.Cylinder, Mat("#FF6F61", 0.75f), new Vector3(0, 0.0f, 0), new Vector3(0.34f, 0.28f, 0.34f), new Vector3(0, 0, 90));
OfficeSmashGame.View.cs:507 / void BuildTool()Part(pivot, OsMeshes.Cylinder, Mat("#FFD23F", 0.75f), new Vector3(0, 0, 0), new Vector3(0.36f, 0.06f, 0.36f), new Vector3(0, 0, 90));
OfficeSmashGame.View.cs:508 / void BuildTool()Part(pivot, OsMeshes.Cylinder, Mat("#FFD23F", 0.6f), new Vector3(0, 0.45f, 0), new Vector3(0.09f, 0.42f, 0.09f));
OfficeSmashGame.View.cs:509 / void BuildTool()Part(pivot, OsMeshes.Cylinder, Mat("#FF4F8B", 0.6f), new Vector3(0, 0.82f, 0), new Vector3(0.12f, 0.1f, 0.12f));
OfficeSmashGame.View.cs:526 / void SetToolLook(bool sledge)head.GetComponent<MeshRenderer>().sharedMaterial = sledge ? Mat("#8D99AE", 0.9f) : Mat("#FF6F61", 0.75f);
OfficeSmashGame.View.cs:648 / void BuildPools()var t = MeshObj("Debris", root, dm, Mat("#FFFFFF"), true);
OsData.cs:169 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#8FE3C8", "#5CC9A7", "#F3E1C7", "#EAD3B2" }, // lobby: mint + marble
OsData.cs:170 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#FFC9A8", "#F2A27A", "#B9A6F2", "#A994EA" }, // cubicle: peach + lilac carpet
OsData.cs:171 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#BFD7FF", "#8CB4F5", "#E6E9EF", "#D7DCE5" }, // copy: blue + grey tile
OsData.cs:172 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#FFE29A", "#F5C451", "#CDEFD9", "#B8E6C8" }, // break: butter + mint tile
OsData.cs:173 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#C9B6FF", "#A68DF2", "#F6D3C1", "#EFC2AC" }, // meeting
OsData.cs:174 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#A9C3D6", "#7FA3BD", "#7E8AA6", "#707B97" }, // server
OsData.cs:175 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#FFB5C5", "#F58CA4", "#F5E6C8", "#EBD8B4" }, // mail
OsData.cs:176 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#2E4057", "#1F2D3F", "#C9A66B", "#B8955C" }, // ceo: navy + wood
OsData.cs:177 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#D8C3A5", "#BFA27C", "#A7C4A0", "#97B690" }, // archive
OsData.cs:178 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#9FE2F5", "#6CCDE8", "#FFD9E1", "#FFC7D3" }, // open plan
OsData.cs:179 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#C7C7D9", "#A6A6BF", "#D6C29B", "#C9B38A" }, // storage
OsData.cs:180 / public int CountProps() { int n = 0; for (int i = 0; i < Props.Length; i++) if (Floor[i] && Props[i] != Prop.None) n++; return n; }{ "#B8F2C8", "#86E0A0", "#FFE6B8", "#FFDA9E" }, // gym
CHAPTER 10

Reskin recipe: visible menu and HUD text

Open Scripts/OfficeSmashGame.UI.cs, find the displayed literal "Settings", and replace its displayed value with "Options". 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/OfficeSmashGame.cs; help and effect descriptions: Scripts/OfficeSmashGame.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
OfficeSmashGame.cs:26 / class/static declarationsstatic readonly string[] BoostName = { "Sledgehammer", "Bowling Ball", "Paper Bomb", "Coffee Break" };
OfficeSmashGame.cs:141 / IEnumerator IntroFlow()OfficePopup(it.title, it.msg, HzUI.Hex("#FF4F8B"), Art(it.art), ("Got it!", Green, () => closed = true));
OfficeSmashGame.cs:315 / void PlayEvent(Ev ev)Toast("The boss's trophy! -2 swings", HzUI.Hex("#FFD23F"), 1.4f, 0.75f);
OfficeSmashGame.cs:343 / void PlayEvent(Ev ev)Toast("Target reached! Keep smashing for stars", HzUI.Hex("#3DDC84"), 1.6f, 0.78f);
OfficeSmashGame.cs:449 / IEnumerator WinFlow()WinPopup(lv, stars, $"${total:N0} of damage - {_e.Pct}% wrecked");
OfficeSmashGame.cs:461 / IEnumerator LoseFlow()OfficePopup("Out of swings!", $"{_e.Pct}% wrecked, target {_e.Target}%.\nGrab 2 more swings and finish the job?", HzUI.Hex("#FF4F8B"), Art("lose_badge"),
OfficeSmashGame.cs:465 / IEnumerator LoseFlow()OfficePopup("Out of swings!", $"{_e.Pct}% wrecked, target {_e.Target}%.", HzUI.Hex("#FF4F8B"), Art("lose_badge"),
OfficeSmashGame.cs:496 / void OnBooster(int b)if (!Unlocked(b)) { Toast("Unlocks at level " + BoostUnlock[b], null, 1.4f, 0.7f); HzAudio.Play(Sfx.Wrong, 0.5f); if (_boost[b] != null) HzTween.Shake(_boost[b].Root, 10, 0.3f); return; }
OfficeSmashGame.cs:502 / void OnBooster(int b)OfficePopup("Need a " + BoostName[b] + "?", "Watch a short ad to get one more.", HzUI.Hex(BoostColor[b]), Art(BoostArt[b]),
OfficeSmashGame.cs:503 / void OnBooster(int b)("Get 1 (ad)", Green, () => HzPlatform.Rewarded(GameId, "tool_" + BoostShort[b].ToLowerInvariant(), ok => { if (ok) { SetCharges(b, Charges(b) + 1); Toast("+1 " + BoostName[b]); HzAudio.Play(Sfx.Coin, 0.7f); } })),
OfficeSmashGame.cs:623 / public override string DebugCommand(string cmd)case "settings": ShowSettingsPopup(); return "ok";
OfficeSmashGame.UI.cs:68 / void BuildHud()_levelText = HzUI.Label("Lvl", lp.transform, (_data.boss ? "Boss Office " : "Level ") + Level, _data.boss ? 46 : 54, Color.white);
OfficeSmashGame.UI.cs:71 / void BuildHud()_levelSub = HzUI.Label("Name", lp.transform, _data.name, 30, HzUI.Hex("#E8F0FF"), TextAnchor.MiddleCenter, false);
OfficeSmashGame.UI.cs:88 / void BuildHud()_swingText = HzUI.Label("N", _swingPanel, "", 64, Ink); _swingText.rectTransform.Place(new Vector2(0, 0.5f), new Vector2(110, 80), new Vector2(170, 10));
OfficeSmashGame.UI.cs:89 / void BuildHud()var swl = HzUI.Label("L", _swingPanel, "swings", 26, HzUI.Hex("#7A7F99"), TextAnchor.MiddleCenter, false); swl.fontStyle = FontStyle.Bold;
OfficeSmashGame.UI.cs:91 / void BuildHud()var swl2 = HzUI.Label("x", _swingPanel, "", 0, Ink); swl2.gameObject.SetActive(false);
OfficeSmashGame.UI.cs:112 / void BuildHud()var goal = HzUI.Label("Goal", _progPanel, "Wreck " + _e.Target + "% of the room", 30, HzUI.Hex("#5A5F7A"), TextAnchor.MiddleLeft, false);
OfficeSmashGame.UI.cs:115 / void BuildHud()_pctText = HzUI.Label("Pct", _progPanel, "", 52, Ink);
OfficeSmashGame.UI.cs:117 / void BuildHud()_cashText = HzUI.Label("Cash", _progPanel, "", 34, HzUI.Hex("#2BAE66"));
OfficeSmashGame.UI.cs:141 / void BuildHud()var cb = HzUI.Button("ClockOut", _hud, "Clock Out!", Green, Color.white, ClockOut, 52, 40);
OfficeSmashGame.UI.cs:153 / void BuildHud()_modeText = HzUI.Label("T", _modeBanner, "", 40, Color.white); _modeText.rectTransform.Stretch(16);
OfficeSmashGame.UI.cs:166 / void BuildHud()_tipText = HzUI.Label("T", _tipPanel, "", portrait ? 40 : 42, Ink); _tipText.rectTransform.Stretch(18);
OfficeSmashGame.UI.cs:219 / void Mark(RectTransform bar, float w, int pct, Color c, bool target)var btn = HzUI.Button("Booster" + b, parent, null, Color.white, Color.white, () => OnBooster(id), 40, 75);
OfficeSmashGame.UI.cs:243 / void Mark(RectTransform bar, float w, int pct, Color c, bool target)v.BadgeText = HzUI.Label("N", bd.transform, "", 36, Color.white); v.BadgeText.rectTransform.Stretch();
OfficeSmashGame.UI.cs:245 / void Mark(RectTransform bar, float w, int pct, Color c, bool target)v.Caption = HzUI.Label("Cap", v.Root, "", 30, Ink);
OfficeSmashGame.UI.cs:262 / void RefreshBoosters()v.BadgeText.text = c > 0 ? c.ToString() : "+";
OfficeSmashGame.UI.cs:264 / void RefreshBoosters()v.Caption.text = un ? BoostShort[b] : "Level " + BoostUnlock[b];
OfficeSmashGame.UI.cs:275 / void UpdateHudValues(bool punch)_pctText.text = _e.Pct + "%";
OfficeSmashGame.UI.cs:284 / void UpdateHudValues(bool punch)HzTween.Run(t, "count", 0.4f, k => t.text = "$" + Mathf.RoundToInt(Mathf.Lerp(from, cash, k)).ToString("N0"), HzEase.OutCubic);
OfficeSmashGame.UI.cs:286 / void UpdateHudValues(bool punch)else _cashText.text = "$" + cash.ToString("N0");
OfficeSmashGame.UI.cs:384 / void FloatAt(Vector2 start, string text, Color c, int size)var l = HzUI.Label("Float", _labels, text, size, Color.white);
OfficeSmashGame.UI.cs:404 / void ComboCallout(int n)var l = HzUI.Label("Combo", _hud, $"Combo x{n}\n{w}", 84, HzUI.Hex("#FFD23F"));
OfficeSmashGame.UI.cs:421 / void LevelBanner()var t = HzUI.Label("L", bg.transform, title, 92, Color.white); t.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(800, 110), new Vector2(0, -16), new Vector2(0.5f, 1));
OfficeSmashGame.UI.cs:424 / void LevelBanner()var n = HzUI.Label("N", bg.transform, sub, 40, HzUI.Hex("#FFE7F0")); n.rectTransform.Place(new Vector2(0.5f, 0), new Vector2(800, 100), new Vector2(0, 14), new Vector2(0.5f, 0));
OfficeSmashGame.UI.cs:560 / void CompleteGuide(int b)Toast("Nice! The " + BoostName[b] + " is yours", HzUI.Hex("#FFE3F0"), 1.3f, 0.78f);
OfficeSmashGame.UI.cs:685 / HzPopup OfficePopupEx(string title, string message, Color accent, Sprite art, int stars, params (string label, Color color, Action action)[] buttons)var t = HzUI.Label("Title", ribbon.transform, title, title.Length > 22 ? 48 : title.Length > 16 ? 56 : 70, Color.white); t.rectTransform.Stretch(6);
OfficeSmashGame.UI.cs:704 / HzPopup OfficePopupEx(string title, string message, Color accent, Sprite art, int stars, params (string label, Color color, Action action)[] buttons)p.Message = HzUI.Label("Msg", card.transform, message, 42, HzUI.Hex("#4A4E69"), TextAnchor.MiddleCenter, false);
OfficeSmashGame.UI.cs:738 / void UnlockPopup(int b, Action done)OfficePopup("New Tool: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b] + " free!", HzUI.Hex(BoostColor[b]), Art(BoostArt[b]),
OfficeSmashGame.UI.cs:745 / void ShowSettingsPopup()var p = OfficePopup("Settings", "", Navy, null,
OfficeSmashGame.UI.cs:746 / void ShowSettingsPopup()(SoundLabel(), HzUI.Hex("#4C9EEB"), null),
OfficeSmashGame.UI.cs:747 / void ShowSettingsPopup()(MusicLabel(), HzUI.Hex("#8C7BFF"), null),
OfficeSmashGame.UI.cs:758 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON";static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON";
OfficeSmashGame.UI.cs:759 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON";static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON";
CHAPTER 11

Artwork, fonts, audio and licences

Replace game images under Resources/officesmash 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/officesmash/Sfx. Preserve each actual load key and importer settings when replacing sounds. Supplied music: Resources/officesmash/Music/office_groove.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.officesmash, version, scene orientation and signing. The build command writes Builds/Android/officesmash.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/officesmash/. 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.