E_ElecCompetition/Electrical_inspectionCompet.../Assets/Script/Interactive objects/InteractiveArea3.cs

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();
}
}