You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
706 B

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<UniQuake>();
}
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;
}
}
}