ArabDesert/Assets/1-arab desert/udon/Disable_all.cs

21 lines
399 B
C#

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
using UnityEngine.UI;
public class Disable_all : UdonSharpBehaviour
{
private Button _button;
public GameObject[] off;
void Start()
{
_button = transform.GetComponent<Button>();
}
public void ObjectToggle()
{
for (int i = 0; i < off.Length; i++) off[i].SetActive(false);
}
}