51 lines
711 B
C#
51 lines
711 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class InteractiveArea: ToolBase
|
|
{ public GameObject 高亮提示;
|
|
// Start is called before the first frame update
|
|
protected override void Start()
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
protected override void Update()
|
|
{
|
|
|
|
base.Update();
|
|
|
|
|
|
|
|
|
|
}
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
|
|
if (other.name == "Player") {
|
|
|
|
|
|
if (流程脚本.流程状态 == 流程状态.未完成)
|
|
{
|
|
|
|
高亮提示.SetActive(false);
|
|
流程脚本.流程对错判断 = 流程对错判断.正确;
|
|
交互完成 = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|