59 lines
1.1 KiB
C#
59 lines
1.1 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Flow5_5 : FlowsBase
|
|
{
|
|
public Animator 关门;
|
|
public HighlightingSystem.Highlighter[] highlighter;
|
|
public GameObject 交互物体;
|
|
//public GameObject 提示;
|
|
//public Button 工作证;
|
|
// Start is called before the first frame update
|
|
protected override void Start()
|
|
{
|
|
|
|
base.Start();
|
|
if (GameObject.Find("GameFlowManager").GetComponent<FlowManager>().流程模式 == 流程模式.练习模式)
|
|
{
|
|
for (int i = 0; i < highlighter.Length; i++)
|
|
{
|
|
highlighter[i].constant = true;
|
|
}
|
|
}
|
|
交互物体.SetActive(true);
|
|
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
|
|
|
|
|
|
Next();
|
|
|
|
}
|
|
protected override void Next()
|
|
{
|
|
|
|
base.Next();
|
|
|
|
|
|
}
|
|
public void closehighlight() {
|
|
|
|
|
|
for (int i = 0; i < highlighter.Length; i++)
|
|
{
|
|
highlighter[i].constant = false;
|
|
}
|
|
if (关门 != null)
|
|
{ 关门.Play("关门"); }
|
|
|
|
|
|
}
|
|
}
|