using DG.Tweening; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Fieldobservation : MonoBehaviour { /// /// 玩家相机 /// public Transform Cameraobj; /// /// 警告按钮 /// public Button ExclamationPointBtn; bool isclick; /// /// 上梯子后坐标 /// public Transform UptheladderPos; /// /// 打开封印 /// bool isOpenLock; void Start() { } void Update() { } /// /// 用户离开npc警告按钮消失 /// /// private void OnTriggerExit(Collider other) { if (other.name == "Man_stand") { ExclamationPointBtn.gameObject.SetActive(false); } } }