29 lines
738 B
C#
29 lines
738 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
using UnityEngine.UI;
|
|
|
|
public class mirrors_ui : UdonSharpBehaviour
|
|
{
|
|
public Button[] buttons;
|
|
public GameObject[] Mirrors;
|
|
|
|
public void HQ()
|
|
{
|
|
for (int i = 0; i < Mirrors.Length; i++) if (i!=0) Mirrors[i].SetActive(false);
|
|
Mirrors[0].SetActive(!Mirrors[0].activeSelf);
|
|
}
|
|
public void LQ()
|
|
{
|
|
for (int i = 0; i < Mirrors.Length; i++) if (i != 1) Mirrors[i].SetActive(false);
|
|
Mirrors[1].SetActive(!Mirrors[1].activeSelf);
|
|
}
|
|
public void Q()
|
|
{
|
|
for (int i = 0; i < Mirrors.Length; i++) if (i != 2) Mirrors[i].SetActive(false);
|
|
Mirrors[2].SetActive(!Mirrors[2].activeSelf);
|
|
}
|
|
}
|