using System.Collections; using System.Collections.Generic; using UnityEngine; public class Gif_gr3 : MonoBehaviour { public GameObject 詳細; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { if(詳細.activeInHierarchy){ if(Main.Global.電表異常BL[Main.Global.詳細電表電表ID]==true){ GetComponent().SetBool("有異常",true); }else{ GetComponent().SetBool("有異常",false); } } } }