57 lines
944 B
C#
57 lines
944 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
public class Flow3 : FlowsBase
|
|
{
|
|
///public GameObject[] 按钮高亮提示;
|
|
|
|
//public GameObject 提示;
|
|
public Button 红外检测;
|
|
|
|
// Start is called before the first frame update
|
|
protected override void Start()
|
|
{
|
|
|
|
base.Start();
|
|
红外检测.onClick.AddListener(nextflow);
|
|
提示.SetActive(true);
|
|
Debug.Log("高亮");
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
Next();
|
|
}
|
|
protected override void Next()
|
|
{
|
|
|
|
base.Next();
|
|
|
|
|
|
}
|
|
public void nextflow()
|
|
{
|
|
|
|
for (int i = 0; i < 流程物体.Count; i++)
|
|
{
|
|
if (流程物体[i].物品分类 == 物品分类.交互区域)
|
|
{ 流程物体[i].交互完成 = true; }
|
|
|
|
|
|
|
|
}
|
|
红外检测.onClick.RemoveAllListeners();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|