using System.Collections; using System.Collections.Generic; using UnityEngine; public class Gif_gr1 : MonoBehaviour { [SerializeField] GameObject 消防監控系統_pl,電能監控系統_pl,電能報表_pl,詳細電表_pl; public int[] 電能異常code; public float doubleTapTimeThreshold = 0.3f; // 连点时间阈值,单位为秒 private float lastTapTime = 0f; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { if(Main.Global.電表異常BL[1]==true){ GetComponent().SetBool("有異常",true); }else{ GetComponent().SetBool("有異常",false); } } }