void OnGUI() { GUIStyle style = new GUIStyle(); style.normal.textColor = Color.magenta; style.fontSize = 20; GUI.Label(new Rect(0, 35, 100, 30), "Shots Left: " + ShotType.GetShotType(gameObject) + ": " + shotsLeft, style); }