using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bootstrap : MonoBehaviour { private float speed = 1.0f; private void Start() { Debug.Log($"Running in {IntPtr.Size * 8}-bit mode"); } private void OnGUI() { if (GUILayout.Button("Start Quake!")) { gameObject.AddComponent(); } GUILayout.Label("Time scale:"); speed = GUILayout.HorizontalSlider(speed, 0.1f, 5.0f, GUILayout.Width(250)); GUILayout.Label($"{speed:0.00}"); if (!Mathf.Approximately(speed, Time.timeScale)) { Time.timeScale = speed; } } }