|
|
@ -8,6 +8,8 @@ public class Bootstrap : MonoBehaviour |
|
|
private string mod; |
|
|
private string mod; |
|
|
private float speed = 1.0f; |
|
|
private float speed = 1.0f; |
|
|
|
|
|
|
|
|
|
|
|
private UniQuake uq; |
|
|
|
|
|
|
|
|
private void Start() |
|
|
private void Start() |
|
|
{ |
|
|
{ |
|
|
Debug.Log($"Running in {IntPtr.Size * 8}-bit mode"); |
|
|
Debug.Log($"Running in {IntPtr.Size * 8}-bit mode"); |
|
|
@ -17,21 +19,21 @@ public class Bootstrap : MonoBehaviour |
|
|
{ |
|
|
{ |
|
|
if (GUILayout.Button("Start Quake!")) |
|
|
if (GUILayout.Button("Start Quake!")) |
|
|
{ |
|
|
{ |
|
|
var uq = gameObject.AddComponent<UniQuake>(); |
|
|
|
|
|
|
|
|
uq = gameObject.AddComponent<UniQuake>(); |
|
|
uq.BaseGame = MissionPack.Quake; |
|
|
uq.BaseGame = MissionPack.Quake; |
|
|
uq.ModDirectory = mod; |
|
|
uq.ModDirectory = mod; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (GUILayout.Button("Start Scourge of Armagon!")) |
|
|
if (GUILayout.Button("Start Scourge of Armagon!")) |
|
|
{ |
|
|
{ |
|
|
var uq = gameObject.AddComponent<UniQuake>(); |
|
|
|
|
|
|
|
|
uq = gameObject.AddComponent<UniQuake>(); |
|
|
uq.BaseGame = MissionPack.Hipnotic; |
|
|
uq.BaseGame = MissionPack.Hipnotic; |
|
|
uq.ModDirectory = mod; |
|
|
uq.ModDirectory = mod; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (GUILayout.Button("Start Dissolution of Eternity!")) |
|
|
if (GUILayout.Button("Start Dissolution of Eternity!")) |
|
|
{ |
|
|
{ |
|
|
var uq = gameObject.AddComponent<UniQuake>(); |
|
|
|
|
|
|
|
|
uq = gameObject.AddComponent<UniQuake>(); |
|
|
uq.BaseGame = MissionPack.Rogue; |
|
|
uq.BaseGame = MissionPack.Rogue; |
|
|
uq.ModDirectory = mod; |
|
|
uq.ModDirectory = mod; |
|
|
} |
|
|
} |
|
|
@ -46,5 +48,11 @@ public class Bootstrap : MonoBehaviour |
|
|
{ |
|
|
{ |
|
|
Time.timeScale = speed; |
|
|
Time.timeScale = speed; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (uq != null && GUILayout.Button("Quit!")) |
|
|
|
|
|
{ |
|
|
|
|
|
uq.Shutdown(); |
|
|
|
|
|
uq = null; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |