using System.Collections; using System.Collections.Generic; using UnityEngine; public class Gif_gr2 : MonoBehaviour { [SerializeField] GameObject 消防監控系統_pl,電能監控系統_pl,電能報表_pl,詳細電表_pl; 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.副電表有異常==true){ GetComponent().SetBool("有異常",true); }else{ GetComponent().SetBool("有異常",false); } } }