using UnityEngine; using System.Collections; public class SpeedSlider : MonoBehaviour { public int speed; // Use this for initialization void Start () { speed = 0; } void OnGui () { GUI.Box(new Rect(10,10,50,50),"drgdf"); GUI.Box(new Rect(10,60,50,50),"dgdfgdg"); } }