A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Units: spawn the showcase before the frame profile reads the toggles
eyalgolan9389426d8f4f
diff --git a/unity/Assets/Scripts/UI/GameRoot.cs b/unity/Assets/Scripts/UI/GameRoot.csindex ddecb49e2..066bdf421 100644--- a/unity/Assets/Scripts/UI/GameRoot.cs+++ b/unity/Assets/Scripts/UI/GameRoot.cs@@ -196,14 +196,15 @@ namespace Statecraft.Game.UIelse Debug.LogWarning("SMOKE FAIL the smoke run needs play mode or a player");}if (Application.isPlaying && PixelErrorProfile.Requested()) StartCoroutine(PixelErrorProfile.Run(map.Terrain));+ // The unit art slice at gameplay03 (a showcase, never in normal play; war mode's units are issue #104). Before the+ // instruments, so the frame profile lists its "units" toggle (the profile reads the toggles when it starts).+ if (Application.isPlaying && Statecraft.Game.Map.Units.UnitShowcase.Requested())+ Statecraft.Game.Map.Units.UnitShowcase.Spawn(map, Statecraft.Game.Map.Units.UnitShowcase.StillRequested(+ Application.absoluteURL, Environment.GetCommandLineArgs(), Application.platform == RuntimePlatform.WebGLPlayer));// The visual track's instruments (docs/visual-v1.md): both move the camera, so one per run.if (Application.isPlaying && FrameProfile.Requested())StartCoroutine(FrameProfile.Run(camRig, map.Frame, Debug.Log, Application.platform != RuntimePlatform.WebGLPlayer));else if (Application.isPlaying && VisualShots.Requested()) StartCoroutine(VisualShots.Run(camRig, map.Frame, Debug.Log));- // The unit art slice at gameplay03 (a showcase, never in normal play; war mode's units are issue #104).- if (Application.isPlaying && Statecraft.Game.Map.Units.UnitShowcase.Requested())- Statecraft.Game.Map.Units.UnitShowcase.Spawn(map, Statecraft.Game.Map.Units.UnitShowcase.StillRequested(- Application.absoluteURL, Environment.GetCommandLineArgs(), Application.platform == RuntimePlatform.WebGLPlayer));}T Own<T>(T d) where T : IDisposable { owned.Add(d); return d; }