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

21 lines
399 B
C#
Raw Permalink Normal View History

2024-05-25 09:10:35 +03:00

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);
}
}