using UnityEngine; using System.Collections; public class GUIGameplay : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnGUI() { // Make the first button. If it is pressed, Application.Loadlevel (1) will be executed for(int i = 0; i("runic_" + (char)('a' + character)); // Debug.Log(p.score); if (j+1 > p.index) { temp = GUI.color ; GUI.color = new Color(1f, 1f, 1f, 0.50f); GUI.DrawTexture(new Rect(20 + Screen.width / 3 * i + j * 30 + 20, 40, 30, 30), rune); GUI.color = temp; } else { GUI.DrawTexture(new Rect(20 + Screen.width / 3 * i + j * 30 + 20, 40, 30, 30), rune); } } } } }