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