Ejemplo n.º 1
0
        public void OnGUI()
        {
            for (int i = 0; i < showItems.Length; i++)
            {
                showItems[i] = GUILayout.Toggle(showItems[i], "Show Item " + i + "?");

                if (showItems[i])
                {
                    GUILayout.Label("Item " + i);
                }
            }

            if (GUILayout.Button("Save"))
            {
                GLPlayerPrefs.SetBoolArray(NameSpace, ShowItemsKey, showItems);
            }
        }