17 lines
393 B
C#
17 lines
393 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using WIFramework.UI;
|
|
using WSH;
|
|
public class colliderbutton : MonoBehaviour
|
|
{
|
|
public bool isOn;
|
|
public PanelBase myPanel;
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
if (!other.CompareTag(ControlPanel.controllerTag))
|
|
return;
|
|
myPanel.OnClick_ColliderButton();
|
|
}
|
|
}
|