E_ElecCompetition/Electrical_inspectionCompet.../Assets/Script/Flow/Flow4_6.cs

58 lines
1.0 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Flow4_6 : FlowsBase
{
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;
}
}
}