using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Flow2_2 : FlowsBase { public GameObject[] 按钮高亮提示; public Toggle 移动记录仪; // Start is called before the first frame update protected override void Start() { base.Start(); 移动记录仪.onValueChanged.AddListener(onclick); } // Update is called once per frame protected override void Update() { base.Update(); //if (flowManager.index == 3) { if (flowManager.流程模式 == 流程模式.练习模式) { for (int i = 0; i < 按钮高亮提示.Length; i++) { 按钮高亮提示[i].SetActive(true); } //按钮高亮提示.SetActive(true); } //移动记录仪.onValueChanged.AddListener(onclick); //} Next(); } protected override void Next() { base.Next(); } public void onclick(bool xiayibu=true) { Debug.Log("触发"); Next(); 流程物体[0].GetComponent().chickNext(); 移动记录仪.onValueChanged.RemoveAllListeners(); } }