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

15 lines
314 B
C#
Raw Normal View History

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

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
public class Mirror_Zone : UdonSharpBehaviour
{
public GameObject[] off;
public void OnPlayerTriggerExit(VRCPlayerApi Player)
{
if (Player.isLocal) for (int i = 0; i < off.Length; i++) off[i].SetActive(false);
}
}