PJ/Assets/scripts/SetSettings.cs

31 lines
719 B
C#
Raw Normal View History

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<Image>().color = new Color(0, 0, 0, 0);
Debug.Log(i);
}
}
}
// Update is called once per frame
void Update()
{
}
}