using System.Collections; using System.Collections.Generic; using UnityEngine; using WIFramework.UI; using WSH; using WSH.UI; public class ColiderButton2 : MonoBehaviour { public UI_Panel_PermissionCheck myPanel; private void OnTriggerEnter(Collider other) { if (!other.CompareTag(ControlPanel.controllerTag)) return; myPanel.OnClick_Ok(); } }