using System.Collections; using System.Collections.Generic; using System.Data; using UnityEngine; using UnityEngine.UI; public class SetSettings : MonoBehaviour { public int IDS; public Button[] Buttons; // Start is called before the first frame update void Start() { IDS = PlayerPrefs.GetInt("VB"); if (IDS == 0) { for (int i = 0; i < Buttons.Length; i++) { Buttons[i].GetComponent().color = new Color(0, 0, 0, 0); Debug.Log(i); } } } // Update is called once per frame void Update() { } }