72 lines
1.2 KiB
C#
72 lines
1.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class InteractiveArea3 : ToolBase
|
|
{ public GameObject 导航点提示;
|
|
public GameObject[] 按钮高亮;
|
|
public HighlightingSystem.Highlighter[] 物体高亮;
|
|
public GameObject 交互物体;
|
|
public Flow3 Flow3;
|
|
// public Animator player;
|
|
// Start is called before the first frame update
|
|
protected override void Start()
|
|
{
|
|
|
|
|
|
base.Start();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
protected override void Update()
|
|
{
|
|
|
|
base.Update();
|
|
|
|
|
|
|
|
|
|
}
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
|
|
if (other.name == "Player")
|
|
{
|
|
导航点提示.SetActive(false);
|
|
交互物体.SetActive(true);
|
|
for (int i = 0; i < 按钮高亮.Length; i++)
|
|
{
|
|
|
|
按钮高亮[i].SetActive(true);
|
|
|
|
|
|
|
|
}
|
|
for (int i = 0; i < 物体高亮.Length; i++)
|
|
{
|
|
物体高亮[i].constant = true;
|
|
}
|
|
//交互完成 = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
private void onclick() {
|
|
|
|
Debug.Log("next");
|
|
|
|
//流程脚本.流程对错判断 = 流程对错判断.正确;
|
|
//交互完成 = true;
|
|
// Flow2_1.nextCheck();
|
|
}
|
|
|
|
}
|